From 4ac00bd912b982dec50e58df5abc95503fce9225 Mon Sep 17 00:00:00 2001 From: Thea Choem Date: Sat, 20 Mar 2021 18:59:32 +0700 Subject: [PATCH] Fix toggle color doesn't work (#97) --- 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,