|
|
@ -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, |
|
|
|