Minor fix

This commit is contained in:
Neeraj Gupta 2022-11-23 07:33:13 +05:30
parent e5615ac17b
commit ef306d5925
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

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