diff --git a/lib/src/models/config/editor/editor_configurations.dart b/lib/src/models/config/editor/editor_configurations.dart index 92c71fbb..74cc66c8 100644 --- a/lib/src/models/config/editor/editor_configurations.dart +++ b/lib/src/models/config/editor/editor_configurations.dart @@ -80,6 +80,7 @@ class QuillEditorConfigurations extends Equatable { this.enableScribble = false, this.onScribbleActivated, this.scribbleAreaInsets, + this.readOnlyMouseCursor = SystemMouseCursors.text, }); final QuillSharedConfigurations sharedConfigurations; @@ -157,6 +158,9 @@ class QuillEditorConfigurations extends Equatable { final bool? showCursor; final bool? paintCursorAboveText; + /// The [readOnlyMouseCursor] is used for Windows, macOS when [readOnly] is [true] + final MouseCursor readOnlyMouseCursor; + /// Whether to enable user interface affordances for changing the /// text selection. /// diff --git a/lib/src/models/config/raw_editor/raw_editor_configurations.dart b/lib/src/models/config/raw_editor/raw_editor_configurations.dart index 51906cfe..b774b9a2 100644 --- a/lib/src/models/config/raw_editor/raw_editor_configurations.dart +++ b/lib/src/models/config/raw_editor/raw_editor_configurations.dart @@ -85,6 +85,7 @@ class QuillRawEditorConfigurations extends Equatable { this.enableScribble = false, this.onScribbleActivated, this.scribbleAreaInsets, + this.readOnlyMouseCursor = SystemMouseCursors.text, }); /// Controls the document being edited. @@ -177,7 +178,7 @@ class QuillRawEditorConfigurations extends Equatable { final CursorStyle cursorStyle; /// The [readOnlyMouseCursor] is used for Windows, macOS when [readOnly] is [true] - final MouseCursor readOnlyMouseCursor = SystemMouseCursors.text; + final MouseCursor readOnlyMouseCursor; /// Configures how the platform keyboard will select an uppercase or /// lowercase keyboard. diff --git a/lib/src/widgets/editor/editor.dart b/lib/src/widgets/editor/editor.dart index a68d15ce..6a1d58e0 100644 --- a/lib/src/widgets/editor/editor.dart +++ b/lib/src/widgets/editor/editor.dart @@ -290,6 +290,7 @@ class QuillEditorState extends State enableScribble: configurations.enableScribble, onScribbleActivated: configurations.onScribbleActivated, scribbleAreaInsets: configurations.scribbleAreaInsets, + readOnlyMouseCursor: configurations.readOnlyMouseCursor, ), ), ),