Skip to content

Commit

Permalink
Allow textPadding customization
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed May 1, 2023
1 parent 80caf4b commit 039a997
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/render/style/editor_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class EditorStyle extends ThemeExtension<EditorStyle> {
double? lineHeight,
Color? popupMenuFGColor,
Color? popupMenuHoverColor,
EdgeInsets? textPadding,
}) {
return EditorStyle(
padding: padding ?? this.padding,
Expand All @@ -121,7 +122,7 @@ class EditorStyle extends ThemeExtension<EditorStyle> {
selectionMenuItemSelectedColor ?? this.selectionMenuItemSelectedColor,
toolbarColor: toolbarColor ?? this.toolbarColor,
toolbarElevation: toolbarElevation ?? this.toolbarElevation,
textPadding: textPadding ?? textPadding,
textPadding: textPadding ?? this.textPadding,
textStyle: textStyle ?? this.textStyle,
placeholderTextStyle: placeholderTextStyle ?? this.placeholderTextStyle,
bold: bold ?? this.bold,
Expand Down

0 comments on commit 039a997

Please sign in to comment.