Fix toggle color doesn't work (#97)

pull/107/head
Thea Choem 4 years ago committed by GitHub
parent 975bc3b310
commit 4ac00bd912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/widgets/toolbar.dart

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

Loading…
Cancel
Save