Using properly iconTheme colors (#802)

pull/805/head
Pataridze Givi 3 years ago committed by GitHub
parent af8146ad45
commit 7387c3cc83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      lib/src/widgets/toolbar/link_style_button.dart

@ -85,12 +85,16 @@ class _LinkStyleButtonState extends State<LinkStyleButton> {
widget.icon ?? Icons.link,
size: widget.iconSize,
color: isToggled
? (widget.iconTheme?.iconUnselectedColor ??
theme.iconTheme.color)
: (widget.iconTheme?.disabledIconColor ?? theme.disabledColor),
? (widget.iconTheme?.iconSelectedColor ??
theme.primaryIconTheme.color)
: (widget.iconTheme?.iconUnselectedColor ??
theme.iconTheme.color),
),
fillColor:
widget.iconTheme?.iconUnselectedFillColor ?? theme.canvasColor,
fillColor: isToggled
? (widget.iconTheme?.iconSelectedFillColor ??
theme.toggleableActiveColor)
: (widget.iconTheme?.iconUnselectedFillColor ??
theme.canvasColor),
borderRadius: widget.iconTheme?.borderRadius ?? 2,
onPressed: pressedHandler,
),

Loading…
Cancel
Save