An open-source cross-platform alternative to AirDrop
fix: multiline property of message input dialog
S-ecki0d86b01a9260
diff --git a/lib/widget/dialogs/message_input_dialog.dart b/lib/widget/dialogs/message_input_dialog.dartindex 2ecf9fd4..a63fefc4 100644--- a/lib/widget/dialogs/message_input_dialog.dart+++ b/lib/widget/dialogs/message_input_dialog.dart@@ -24,7 +24,7 @@ class _MessageInputDialogState extends State<MessageInputDialog> {key: ValueKey('m-$_multiline'),initialValue: _text,keyboardType: _multiline ? TextInputType.multiline : TextInputType.text,- maxLines: null,+ maxLines: _multiline ? null : 1,autofocus: true,onChanged: (s) {setState(() => _text = s);@@ -50,7 +50,9 @@ class _MessageInputDialogState extends State<MessageInputDialog> {actions: [TextButton(style: ElevatedButton.styleFrom(- foregroundColor: Theme.of(context).brightness == Brightness.dark ? Theme.of(context).buttonTheme.colorScheme!.onPrimary : null,+ foregroundColor: Theme.of(context).brightness == Brightness.dark+ ? Theme.of(context).buttonTheme.colorScheme!.onPrimary+ : null,),onPressed: () => context.pop(),child: Text(t.general.cancel),