Modificação nos modos, correção de textos cortados

This commit is contained in:
2026-05-17 14:02:42 +01:00
parent 14509c04d3
commit 51ea446ae9
24 changed files with 906 additions and 933 deletions

View File

@@ -53,10 +53,12 @@ class _ChatInputState extends State<ChatInput> {
@override
Widget build(BuildContext context) {
final cs = Theme.of(context).colorScheme;
return Container(
padding: const EdgeInsets.all(16.0),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.95),
color: cs.surface.withOpacity(0.98),
borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
boxShadow: [
BoxShadow(
@@ -169,17 +171,19 @@ class _ChatInputState extends State<ChatInput> {
}
Widget _buildInputField(BuildContext context) {
final cs = Theme.of(context).colorScheme;
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
gradient: LinearGradient(
colors: [
Colors.grey[100]!,
Colors.grey[50]!,
cs.surfaceContainerHighest,
cs.surface,
],
),
border: Border.all(
color: Colors.grey[300]!,
color: cs.outline.withOpacity(0.3),
),
),
child: Row(
@@ -190,9 +194,9 @@ class _ChatInputState extends State<ChatInput> {
controller: widget.controller,
focusNode: _focusNode,
maxLines: _isExpanded ? 5 : 1,
style: const TextStyle(
style: TextStyle(
fontSize: 16,
color: Color(0xFF2D3748),
color: cs.onSurface,
),
decoration: InputDecoration(
hintText: 'Faça sua pergunta sobre o conteúdo...',
@@ -253,8 +257,11 @@ class _ChatInputState extends State<ChatInput> {
height: 48,
decoration: BoxDecoration(
gradient: widget.controller.text.isNotEmpty
? const LinearGradient(
colors: [Color(0xFF82C9BD), Color(0xFF6BA5A0)],
? LinearGradient(
colors: [
cs.primary,
cs.primary.withOpacity(0.85),
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
)