diff --git a/lib/src/widgets/toolbar/buttons/font_family_button.dart b/lib/src/widgets/toolbar/buttons/font_family_button.dart index 01a2cb47..352f938b 100644 --- a/lib/src/widgets/toolbar/buttons/font_family_button.dart +++ b/lib/src/widgets/toolbar/buttons/font_family_button.dart @@ -120,6 +120,13 @@ class QuillToolbarFontFamilyButtonState return iconSize ?? baseFontSize ?? kDefaultIconSize; } + double get iconButtonFactor { + final baseIconFactor = + context.quillToolbarBaseButtonOptions?.iconButtonFactor; + final iconButtonFactor = widget.options.iconButtonFactor; + return iconButtonFactor ?? baseIconFactor ?? kDefaultIconButtonFactor; + } + VoidCallback? get afterButtonPressed { return options.afterButtonPressed ?? context.quillToolbarBaseButtonOptions?.afterButtonPressed; @@ -273,10 +280,9 @@ class QuillToolbarFontFamilyButtonState ), ), ), - const SizedBox(width: 3), Icon( Icons.arrow_drop_down, - size: iconSize / 1.15, + size: iconSize * iconButtonFactor, // color: iconTheme?.iconUnselectedFillColor ?? theme.iconTheme.color, ) ], diff --git a/lib/src/widgets/toolbar/buttons/font_size_button.dart b/lib/src/widgets/toolbar/buttons/font_size_button.dart index 1323c1d2..8b9f20a4 100644 --- a/lib/src/widgets/toolbar/buttons/font_size_button.dart +++ b/lib/src/widgets/toolbar/buttons/font_size_button.dart @@ -241,10 +241,9 @@ class QuillToolbarFontSizeButtonState ), ), ), - const SizedBox(width: 3), Icon( Icons.arrow_drop_down, - size: iconSize / 1.15, + size: iconSize * iconButtonFactor, ) ], ),