|
|
@ -96,11 +96,8 @@ class QuillToolbarToggleStyleButtonState |
|
|
|
@override |
|
|
|
@override |
|
|
|
String get defaultTooltip => _defaultTooltipAndIconData.$1; |
|
|
|
String get defaultTooltip => _defaultTooltipAndIconData.$1; |
|
|
|
|
|
|
|
|
|
|
|
IconData get iconData { |
|
|
|
@override |
|
|
|
return options.iconData ?? |
|
|
|
IconData get defaultIconData => _defaultTooltipAndIconData.$2; |
|
|
|
context.quillToolbarBaseButtonOptions?.iconData ?? |
|
|
|
|
|
|
|
_defaultTooltipAndIconData.$2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void _onPressed() { |
|
|
|
void _onPressed() { |
|
|
|
_toggleAttribute(); |
|
|
|
_toggleAttribute(); |
|
|
@ -140,6 +137,7 @@ class QuillToolbarToggleStyleButtonState |
|
|
|
|
|
|
|
|
|
|
|
bool _getIsToggled(Map<String, Attribute> attrs) { |
|
|
|
bool _getIsToggled(Map<String, Attribute> attrs) { |
|
|
|
if (widget.attribute.key == Attribute.list.key || |
|
|
|
if (widget.attribute.key == Attribute.list.key || |
|
|
|
|
|
|
|
widget.attribute.key == Attribute.header.key || |
|
|
|
widget.attribute.key == Attribute.script.key || |
|
|
|
widget.attribute.key == Attribute.script.key || |
|
|
|
widget.attribute.key == Attribute.align.key) { |
|
|
|
widget.attribute.key == Attribute.align.key) { |
|
|
|
final attribute = attrs[widget.attribute.key]; |
|
|
|
final attribute = attrs[widget.attribute.key]; |
|
|
|