From c130873416a3e131d516fbeda8fbf4a330c1407b Mon Sep 17 00:00:00 2001 From: X Code Date: Sat, 24 Dec 2022 18:53:03 -0800 Subject: [PATCH] Remove iOS hack for delaying focus calculation --- CHANGELOG.md | 3 +++ lib/src/widgets/raw_editor.dart | 3 +-- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3511bd67..e3f59a30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [6.1.11] +* Remove iOS hack for delaying focus calculation. + # [6.1.10] * Delay focus calculation for iOS. diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index 467fb5ad..835f0db8 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -1075,8 +1075,7 @@ class RawEditorState extends EditorState if (_hasFocus) { final keyboardAlreadyShown = _keyboardVisible; openConnectionIfNeeded(); - if (!keyboardAlreadyShown || - defaultTargetPlatform == TargetPlatform.iOS) { + if (!keyboardAlreadyShown) { /// delay 500 milliseconds for waiting keyboard show up Future.delayed(const Duration(milliseconds: 500), _showCaretOnScreen); } else { diff --git a/pubspec.yaml b/pubspec.yaml index a0736eee..8ef81718 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 6.1.10 +version: 6.1.11 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill