Neeraj Gupta 2 anni fa
parent
commit
ef306d5925
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/ui/components/toggle_switch_widget.dart

+ 1 - 1
lib/ui/components/toggle_switch_widget.dart

@@ -60,7 +60,7 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
               activeColor: enteColorScheme.primary400,
               inactiveTrackColor: enteColorScheme.fillMuted,
               materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
-              value: toggleValue,
+              value: toggleValue ?? false,
               onChanged: (negationOfToggleValue) async {
                 setState(() {
                   toggleValue = negationOfToggleValue;