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:
commit
7960b2ca10
@ -448,7 +448,11 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
height: 0,
|
height: 0,
|
||||||
child: !_showEdit
|
child: !_showEdit
|
||||||
? Container()
|
? 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,
|
textInputAction: TextInputAction.newline,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
enableSuggestions: false,
|
enableSuggestions: false,
|
||||||
@ -459,7 +463,7 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
// trick way to make backspace work always
|
// trick way to make backspace work always
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
onChanged: handleSoftKeyboardInput,
|
onChanged: handleSoftKeyboardInput,
|
||||||
),
|
)),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
if (showCursorPaint) {
|
if (showCursorPaint) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user