From 5db3b8a6b5221c8f89de493bdd457232f1923c81 Mon Sep 17 00:00:00 2001 From: theacheng Date: Sat, 20 Mar 2021 17:38:31 +0700 Subject: [PATCH] fix toggle color doesn't work --- lib/widgets/toolbar.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/toolbar.dart b/lib/widgets/toolbar.dart index 2f6e0115..58f367d5 100644 --- a/lib/widgets/toolbar.dart +++ b/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,