From 6784d8d87c9c190a5b6e013dfafcb0d987c6523b Mon Sep 17 00:00:00 2001 From: Oligazar Date: Tue, 9 Apr 2024 09:17:59 +0300 Subject: [PATCH] fix for keyboard jumping on switch focus from TextField to QuillEditor --- .gitignore | 5 ++++- lib/src/widgets/raw_editor/raw_editor_state.dart | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9290cda2..096ab3b5 100644 --- a/.gitignore +++ b/.gitignore @@ -81,4 +81,7 @@ pubspec.lock pubspec_overrides.yaml # A directory where you put all of your local things that you don't want to push -.flutter-quill \ No newline at end of file +.flutter-quill + +# FVM Version Cache +.fvm/ \ No newline at end of file diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index c9f88df5..d80dde2f 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -1429,6 +1429,7 @@ class QuillRawEditorState extends EditorState void _handleFocusChanged() { if (dirty) { + requestKeyboard(); SchedulerBinding.instance .addPostFrameCallback((_) => _handleFocusChanged()); return;