Restore `QuillToolbarColorButton`

pull/1633/head
Aleksei 1 year ago
parent f62f358f20
commit be4001087e
  1. 16
      lib/src/widgets/toolbar/buttons/color/color_button.dart

@ -194,14 +194,18 @@ class QuillToolbarColorButtonState extends State<QuillToolbarColorButton> {
); );
} }
return IconButton( return QuillToolbarIconButton(
tooltip: tooltip, tooltip: tooltip,
iconSize: iconSize * iconButtonFactor, size: iconSize * iconButtonFactor,
icon: Icon( icon: Icon(iconData,
iconData, size: iconSize,
color: widget.isBackground ? iconColorBackground : iconColor, color: widget.isBackground ? iconColorBackground : iconColor),
), isFilled: false,
iconFilledStyle: IconButton.styleFrom(
backgroundColor:
widget.isBackground ? fillColorBackground : fillColor),
onPressed: _showColorPicker, onPressed: _showColorPicker,
afterPressed: afterButtonPressed,
); );
} }

Loading…
Cancel
Save