pull/1826/head
Dmitry Ukhanov 1 year ago committed by GitHub
parent 5d4e4eed8f
commit 28dd44fcf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      lib/src/widgets/toolbar/buttons/font_family_button.dart
  2. 3
      lib/src/widgets/toolbar/buttons/font_size_button.dart

@ -120,6 +120,13 @@ class QuillToolbarFontFamilyButtonState
return iconSize ?? baseFontSize ?? kDefaultIconSize; return iconSize ?? baseFontSize ?? kDefaultIconSize;
} }
double get iconButtonFactor {
final baseIconFactor =
context.quillToolbarBaseButtonOptions?.iconButtonFactor;
final iconButtonFactor = widget.options.iconButtonFactor;
return iconButtonFactor ?? baseIconFactor ?? kDefaultIconButtonFactor;
}
VoidCallback? get afterButtonPressed { VoidCallback? get afterButtonPressed {
return options.afterButtonPressed ?? return options.afterButtonPressed ??
context.quillToolbarBaseButtonOptions?.afterButtonPressed; context.quillToolbarBaseButtonOptions?.afterButtonPressed;
@ -266,10 +273,9 @@ class QuillToolbarFontFamilyButtonState
), ),
), ),
), ),
const SizedBox(width: 3),
Icon( Icon(
Icons.arrow_drop_down, Icons.arrow_drop_down,
size: iconSize / 1.15, size: iconSize * iconButtonFactor,
// color: iconTheme?.iconUnselectedFillColor ?? theme.iconTheme.color, // color: iconTheme?.iconUnselectedFillColor ?? theme.iconTheme.color,
) )
], ],

@ -234,10 +234,9 @@ class QuillToolbarFontSizeButtonState
), ),
), ),
), ),
const SizedBox(width: 3),
Icon( Icon(
Icons.arrow_drop_down, Icons.arrow_drop_down,
size: iconSize / 1.15, size: iconSize * iconButtonFactor,
) )
], ],
), ),

Loading…
Cancel
Save