Skip to content

Commit

Permalink
Chore: changed param names to have the same from their classes
Browse files Browse the repository at this point in the history
  • Loading branch information
CatHood0 committed Nov 28, 2024
1 parent 33a8cdd commit ce4c09b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions lib/src/editor/config/editor_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
///
Expand Down Expand Up @@ -544,7 +544,7 @@ class QuillEditorConfig {
TextSelectionThemeData? textSelectionThemeData,
PlaceholderConfig? placeholderComponentsConfiguration,
bool? requestKeyboardFocusOnCheckListChanged,
CursorPlaceholderConfig? cursorParagrahPlaceholderConfiguration,
CursorPlaceholderConfig? cursorPlaceholderConfig,
TextMagnifierConfiguration? magnifierConfiguration,
TextInputAction? textInputAction,
bool? enableScribble,
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/editor/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ class QuillEditorState extends State<QuillEditor>
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,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/editor/raw_editor/config/raw_editor_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -135,7 +135,7 @@ class QuillRawEditorConfig {
final List<SpaceShortcutEvent> 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.
///
Expand Down
6 changes: 3 additions & 3 deletions lib/src/editor/raw_editor/raw_editor_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -683,7 +683,7 @@ class QuillRawEditorState extends EditorState
MediaQuery.devicePixelRatioOf(context),
_cursorCont,
_styles!.inlineCode!,
widget.config.cursorParagrahPlaceholderConfiguration,
widget.config.cursorPlaceholderConfig,
);
return editableTextLine;
}
Expand Down

0 comments on commit ce4c09b

Please sign in to comment.