🔧Fix `readOnlyMouseCursor` losing in construction function (#1875)

pull/1877/head
Cierra_Runis 11 months ago committed by GitHub
parent 171e6f0c41
commit bcade13db8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      lib/src/models/config/editor/editor_configurations.dart
  2. 3
      lib/src/models/config/raw_editor/raw_editor_configurations.dart
  3. 1
      lib/src/widgets/editor/editor.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.
///

@ -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.

@ -290,6 +290,7 @@ class QuillEditorState extends State<QuillEditor>
enableScribble: configurations.enableScribble,
onScribbleActivated: configurations.onScribbleActivated,
scribbleAreaInsets: configurations.scribbleAreaInsets,
readOnlyMouseCursor: configurations.readOnlyMouseCursor,
),
),
),

Loading…
Cancel
Save