|
|
|
@ -68,6 +68,13 @@ class QuillToolbarToggleStyleButtonState |
|
|
|
|
return iconSize ?? baseFontSize; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
double get iconButtonFactor { |
|
|
|
|
final baseIconFactor = |
|
|
|
|
context.requireQuillToolbarBaseButtonOptions.globalIconButtonFactor; |
|
|
|
|
final iconButtonFactor = options.iconButtonFactor; |
|
|
|
|
return iconButtonFactor ?? baseIconFactor; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
VoidCallback? get afterButtonPressed { |
|
|
|
|
return options.afterButtonPressed ?? |
|
|
|
|
context.requireQuillToolbarBaseButtonOptions.afterButtonPressed; |
|
|
|
@ -159,6 +166,7 @@ class QuillToolbarToggleStyleButtonState |
|
|
|
|
_toggleAttribute, |
|
|
|
|
options.afterButtonPressed, |
|
|
|
|
iconSize, |
|
|
|
|
iconButtonFactor, |
|
|
|
|
iconTheme, |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|