From ce4c09bb417de1dac4062b9b630be94e2e7748b7 Mon Sep 17 00:00:00 2001 From: CatHood0 Date: Thu, 28 Nov 2024 02:37:49 -0400 Subject: [PATCH] Chore: changed param names to have the same from their classes --- lib/src/editor/config/editor_config.dart | 12 ++++++------ lib/src/editor/editor.dart | 4 ++-- .../editor/raw_editor/config/raw_editor_config.dart | 4 ++-- lib/src/editor/raw_editor/raw_editor_state.dart | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/src/editor/config/editor_config.dart b/lib/src/editor/config/editor_config.dart index d2f16699f..a8a603ab5 100644 --- a/lib/src/editor/config/editor_config.dart +++ b/lib/src/editor/config/editor_config.dart @@ -29,7 +29,7 @@ class QuillEditorConfig { this.scrollable = true, this.padding = EdgeInsets.zero, this.placeholderComponentsConfiguration, - this.cursorParagrahPlaceholderConfiguration, + this.cursorPlaceholderConfig, @experimental this.characterShortcutEvents = const [], @experimental this.spaceShortcutEvents = const [], this.autoFocus = false, @@ -172,7 +172,7 @@ class QuillEditorConfig { final PlaceholderConfig? placeholderComponentsConfiguration; /// This argument configure how will be showed the placeholder at right or left of the cursor - final CursorPlaceholderConfig? cursorParagrahPlaceholderConfiguration; + final CursorPlaceholderConfig? cursorPlaceholderConfig; /// A handler for keys that are pressed when the editor is focused. /// @@ -544,7 +544,7 @@ class QuillEditorConfig { TextSelectionThemeData? textSelectionThemeData, PlaceholderConfig? placeholderComponentsConfiguration, bool? requestKeyboardFocusOnCheckListChanged, - CursorPlaceholderConfig? cursorParagrahPlaceholderConfiguration, + CursorPlaceholderConfig? cursorPlaceholderConfig, TextMagnifierConfiguration? magnifierConfiguration, TextInputAction? textInputAction, bool? enableScribble, @@ -553,9 +553,9 @@ class QuillEditorConfig { void Function(TextInputAction action)? onPerformAction, }) { return QuillEditorConfig( - cursorParagrahPlaceholderConfiguration: - cursorParagrahPlaceholderConfiguration ?? - this.cursorParagrahPlaceholderConfiguration, + cursorPlaceholderConfig: + cursorPlaceholderConfig ?? + this.cursorPlaceholderConfig, placeholderComponentsConfiguration: placeholderComponentsConfiguration ?? this.placeholderComponentsConfiguration, customLeadingBlockBuilder: diff --git a/lib/src/editor/editor.dart b/lib/src/editor/editor.dart index b42977915..7eec27e50 100644 --- a/lib/src/editor/editor.dart +++ b/lib/src/editor/editor.dart @@ -267,8 +267,8 @@ class QuillEditorState extends State config: QuillRawEditorConfig( characterShortcutEvents: widget.config.characterShortcutEvents, spaceShortcutEvents: widget.config.spaceShortcutEvents, - cursorParagrahPlaceholderConfiguration: - widget.config.cursorParagrahPlaceholderConfiguration, + cursorPlaceholderConfig: + widget.config.cursorPlaceholderConfig, placeholderBuilder: placeholderBuilder, onKeyPressed: widget.config.onKeyPressed, customLeadingBuilder: widget.config.customLeadingBlockBuilder, diff --git a/lib/src/editor/raw_editor/config/raw_editor_config.dart b/lib/src/editor/raw_editor/config/raw_editor_config.dart index ece64f9b9..20e489021 100644 --- a/lib/src/editor/raw_editor/config/raw_editor_config.dart +++ b/lib/src/editor/raw_editor/config/raw_editor_config.dart @@ -31,7 +31,7 @@ class QuillRawEditorConfig { required this.characterShortcutEvents, required this.spaceShortcutEvents, this.placeholderBuilder, - this.cursorParagrahPlaceholderConfiguration, + this.cursorPlaceholderConfig, @experimental this.onKeyPressed, this.showCursor = true, this.scrollable = true, @@ -135,7 +135,7 @@ class QuillRawEditorConfig { final List spaceShortcutEvents; /// This argument configure how will be showed the placeholder at right or left of the cursor - final CursorPlaceholderConfig? cursorParagrahPlaceholderConfiguration; + final CursorPlaceholderConfig? cursorPlaceholderConfig; /// A handler for keys that are pressed when the editor is focused. /// diff --git a/lib/src/editor/raw_editor/raw_editor_state.dart b/lib/src/editor/raw_editor/raw_editor_state.dart index 6cbe27fd3..689a89e7e 100644 --- a/lib/src/editor/raw_editor/raw_editor_state.dart +++ b/lib/src/editor/raw_editor/raw_editor_state.dart @@ -606,8 +606,8 @@ class QuillRawEditorState extends EditorState block: node, placeholderBuilder: widget.config.placeholderBuilder, controller: controller, - cursorParagrahPlaceholderConfiguration: - widget.config.cursorParagrahPlaceholderConfiguration, + cursorPlaceholderConfig: + widget.config.cursorPlaceholderConfig, customLeadingBlockBuilder: widget.config.customLeadingBuilder, textDirection: nodeTextDirection, scrollBottomInset: widget.config.scrollBottomInset, @@ -683,7 +683,7 @@ class QuillRawEditorState extends EditorState MediaQuery.devicePixelRatioOf(context), _cursorCont, _styles!.inlineCode!, - widget.config.cursorParagrahPlaceholderConfiguration, + widget.config.cursorPlaceholderConfig, ); return editableTextLine; }