|
|
|
@ -27,6 +27,13 @@ class QuillToolbarImageButton extends StatelessWidget { |
|
|
|
|
return iconSize ?? baseFontSize; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
double _iconButtonFactor(BuildContext context) { |
|
|
|
|
final baseIconFactor = |
|
|
|
|
baseButtonExtraOptions(context).globalIconButtonFactor; |
|
|
|
|
final iconButtonFactor = options.iconButtonFactor; |
|
|
|
|
return iconButtonFactor ?? baseIconFactor; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
VoidCallback? _afterButtonPressed(BuildContext context) { |
|
|
|
|
return options.afterButtonPressed ?? |
|
|
|
|
baseButtonExtraOptions(context).afterButtonPressed; |
|
|
|
@ -62,6 +69,7 @@ class QuillToolbarImageButton extends StatelessWidget { |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
final tooltip = _tooltip(context); |
|
|
|
|
final iconSize = _iconSize(context); |
|
|
|
|
final iconButtonFactor = _iconButtonFactor(context); |
|
|
|
|
final iconData = _iconData(context); |
|
|
|
|
final childBuilder = |
|
|
|
|
options.childBuilder ?? baseButtonExtraOptions(context).childBuilder; |
|
|
|
@ -72,6 +80,7 @@ class QuillToolbarImageButton extends StatelessWidget { |
|
|
|
|
afterButtonPressed: _afterButtonPressed(context), |
|
|
|
|
iconData: iconData, |
|
|
|
|
iconSize: iconSize, |
|
|
|
|
iconButtonFactor: iconButtonFactor, |
|
|
|
|
dialogTheme: options.dialogTheme, |
|
|
|
|
fillColor: options.fillColor, |
|
|
|
|
iconTheme: options.iconTheme, |
|
|
|
|