From ef306d59258b2b1544eb8748eb678baf65e158a8 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 23 Nov 2022 07:33:13 +0530 Subject: [PATCH] Minor fix --- lib/ui/components/toggle_switch_widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/components/toggle_switch_widget.dart b/lib/ui/components/toggle_switch_widget.dart index c1c2cd886..5b8940485 100644 --- a/lib/ui/components/toggle_switch_widget.dart +++ b/lib/ui/components/toggle_switch_widget.dart @@ -60,7 +60,7 @@ class _ToggleSwitchWidgetState extends State { activeColor: enteColorScheme.primary400, inactiveTrackColor: enteColorScheme.fillMuted, materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, - value: toggleValue, + value: toggleValue ?? false, onChanged: (negationOfToggleValue) async { setState(() { toggleValue = negationOfToggleValue;