fix toggle color doesn't work

pull/97/head
theacheng 4 years ago
parent 975bc3b310
commit 5db3b8a6b5
  1. 4
      lib/widgets/toolbar.dart

@ -353,12 +353,12 @@ Widget defaultToggleStyleButtonBuilder(
final theme = Theme.of(context); final theme = Theme.of(context);
final isEnabled = onPressed != null; final isEnabled = onPressed != null;
final iconColor = isEnabled final iconColor = isEnabled
? isToggled != null ? isToggled == true
? theme.primaryIconTheme.color ? theme.primaryIconTheme.color
: theme.iconTheme.color : theme.iconTheme.color
: theme.disabledColor; : theme.disabledColor;
final fillColor = final fillColor =
isToggled != null ? theme.toggleableActiveColor : theme.canvasColor; isToggled == true ? theme.toggleableActiveColor : theme.canvasColor;
return QuillIconButton( return QuillIconButton(
highlightElevation: 0, highlightElevation: 0,
hoverElevation: 0, hoverElevation: 0,

Loading…
Cancel
Save