Remove iOS hack for delaying focus calculation

pull/1036/head
X Code 2 years ago
parent 1597cb9181
commit c130873416
  1. 3
      CHANGELOG.md
  2. 3
      lib/src/widgets/raw_editor.dart
  3. 2
      pubspec.yaml

@ -1,3 +1,6 @@
# [6.1.11]
* Remove iOS hack for delaying focus calculation.
# [6.1.10] # [6.1.10]
* Delay focus calculation for iOS. * Delay focus calculation for iOS.

@ -1075,8 +1075,7 @@ class RawEditorState extends EditorState
if (_hasFocus) { if (_hasFocus) {
final keyboardAlreadyShown = _keyboardVisible; final keyboardAlreadyShown = _keyboardVisible;
openConnectionIfNeeded(); openConnectionIfNeeded();
if (!keyboardAlreadyShown || if (!keyboardAlreadyShown) {
defaultTargetPlatform == TargetPlatform.iOS) {
/// delay 500 milliseconds for waiting keyboard show up /// delay 500 milliseconds for waiting keyboard show up
Future.delayed(const Duration(milliseconds: 500), _showCaretOnScreen); Future.delayed(const Duration(milliseconds: 500), _showCaretOnScreen);
} else { } else {

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 6.1.10 version: 6.1.11
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save