diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index aad36b61..d33d0cdc 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -540,15 +540,15 @@ class QuillRawEditorState extends EditorState child = BaselineProxy( textStyle: _styles!.paragraph!.style, padding: baselinePadding, - child: QuillSingleChildScrollView( - controller: _scrollController, - physics: widget.configurations.scrollPhysics, - viewportBuilder: (_, offset) => CompositedTransformTarget( - link: _toolbarLayerLink, - child: MouseRegion( - cursor: SystemMouseCursors.text, - child: _scribbleFocusable( - QuilRawEditorMultiChildRenderObject( + child: _scribbleFocusable( + QuillSingleChildScrollView( + controller: _scrollController, + physics: widget.configurations.scrollPhysics, + viewportBuilder: (_, offset) => CompositedTransformTarget( + link: _toolbarLayerLink, + child: MouseRegion( + cursor: SystemMouseCursors.text, + child: QuilRawEditorMultiChildRenderObject( key: _editorKey, offset: offset, document: doc, @@ -574,13 +574,13 @@ class QuillRawEditorState extends EditorState ), ); } else { - child = CompositedTransformTarget( - link: _toolbarLayerLink, - child: Semantics( - child: MouseRegion( - cursor: SystemMouseCursors.text, - child: _scribbleFocusable( - QuilRawEditorMultiChildRenderObject( + child = _scribbleFocusable( + CompositedTransformTarget( + link: _toolbarLayerLink, + child: Semantics( + child: MouseRegion( + cursor: SystemMouseCursors.text, + child: QuilRawEditorMultiChildRenderObject( key: _editorKey, document: doc, selection: controller.selection,