Fixup pressing enter to send message
This commit is contained in:
parent
7b1acc533b
commit
ca858fa309
|
@ -128,6 +128,7 @@ class _MessageViewState extends State<MessageView> {
|
||||||
controller: ctrlrCompose,
|
controller: ctrlrCompose,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
textInputAction: TextInputAction.send,
|
textInputAction: TextInputAction.send,
|
||||||
|
onFieldSubmitted: _sendMessage,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
enabledBorder: InputBorder.none,
|
enabledBorder: InputBorder.none,
|
||||||
focusedBorder: InputBorder.none,
|
focusedBorder: InputBorder.none,
|
||||||
|
|
|
@ -30,6 +30,7 @@ class _CwtchTextFieldState extends State<CwtchPasswordField> {
|
||||||
validator: widget.validator,
|
validator: widget.validator,
|
||||||
obscureText: obscureText,
|
obscureText: obscureText,
|
||||||
enableSuggestions: false,
|
enableSuggestions: false,
|
||||||
|
textInputAction: TextInputAction.continueAction,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
suffixIcon: IconButton(
|
suffixIcon: IconButton(
|
||||||
|
|
Loading…
Reference in New Issue