Merge pull request #6436 from fufesou/fix/android_soft_keyboard_input

fix, android_soft_keyboard_input, maybe flutter 3.13.*
This commit is contained in:
RustDesk
2023-11-16 23:40:51 +08:00
committed by GitHub

View File

@@ -448,7 +448,11 @@ class _RemotePageState extends State<RemotePage> {
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<RemotePage> {
// trick way to make backspace work always
keyboardType: TextInputType.multiline,
onChanged: handleSoftKeyboardInput,
),
)),
),
];
if (showCursorPaint) {