|
@@ -63,11 +63,11 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
|
|
),
|
|
),
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
value: toggleValue ?? false,
|
|
value: toggleValue ?? false,
|
|
- onChanged: onChanged,
|
|
|
|
|
|
+ onChanged: _onChanged,
|
|
)
|
|
)
|
|
: CupertinoSwitch(
|
|
: CupertinoSwitch(
|
|
value: toggleValue ?? false,
|
|
value: toggleValue ?? false,
|
|
- onChanged: onChanged,
|
|
|
|
|
|
+ onChanged: _onChanged,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -105,7 +105,7 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- Future<void> onChanged(bool negationOfToggleValue) async {
|
|
|
|
|
|
+ Future<void> _onChanged(bool negationOfToggleValue) async {
|
|
setState(() {
|
|
setState(() {
|
|
toggleValue = negationOfToggleValue;
|
|
toggleValue = negationOfToggleValue;
|
|
//start showing inProgress statu icons if toggle takes more than debounce time
|
|
//start showing inProgress statu icons if toggle takes more than debounce time
|