fix messageinput autofocus

This commit is contained in:
Salvatore Giordano
2020-12-07 13:08:11 +01:00
parent 7a3218c9df
commit b5b35031d9
2 changed files with 21 additions and 2 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ class MessageInput extends StatefulWidget {
this.attachmentThumbnailBuilders,
this.inputTextStyle,
this.attachmentIconColor,
this.autofocus,
this.autofocus = false,
}) : super(key: key);
/// Message to edit
@@ -262,7 +262,7 @@ class MessageInputState extends State<MessageInput> {
});
},
style: widget.inputTextStyle ?? Theme.of(context).textTheme.bodyText2,
autofocus: widget.autofocus ?? false,
autofocus: widget.autofocus,
decoration: InputDecoration(
hintText: 'Write a message',
hintStyle: