diff --git a/flutter/lib/mobile/pages/remote_page.dart b/flutter/lib/mobile/pages/remote_page.dart index 05bf433fe..89a59edaf 100644 --- a/flutter/lib/mobile/pages/remote_page.dart +++ b/flutter/lib/mobile/pages/remote_page.dart @@ -448,7 +448,11 @@ class _RemotePageState extends State { height: 0, child: !_showEdit ? Container() - : TextFormField( + // A container wrapper is needed here on some android devices for flutter 3.13.9, otherwise the focusNode will not work. + // But for flutter 3.10.*, the container wrapper is not needed. + // It maybe the flutter compatibility issue. + : Container( + child: TextFormField( textInputAction: TextInputAction.newline, autocorrect: false, enableSuggestions: false, @@ -459,7 +463,7 @@ class _RemotePageState extends State { // trick way to make backspace work always keyboardType: TextInputType.multiline, onChanged: handleSoftKeyboardInput, - ), + )), ), ]; if (showCursorPaint) {