Raw editor update to support putting QuillEditor inside a Scrollable view (#371)

pull/382/head
kevinDespoulains 4 years ago committed by GitHub
parent 36fb2e1ca8
commit a24241cf6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/src/widgets/raw_editor.dart

@ -564,7 +564,7 @@ class RawEditorState extends EditorState
_showCaretOnScreenScheduled = true;
SchedulerBinding.instance!.addPostFrameCallback((_) {
if (widget.scrollable) {
if (widget.scrollable || _scrollController.hasClients) {
_showCaretOnScreenScheduled = false;
final renderEditor = getRenderEditor();
@ -608,6 +608,7 @@ class RawEditorState extends EditorState
void requestKeyboard() {
if (_hasFocus) {
openConnectionIfNeeded();
_showCaretOnScreen();
} else {
widget.focusNode.requestFocus();
}

Loading…
Cancel
Save