We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1d00b commit 205765dCopy full SHA for 205765d
1 file changed
lib/flutter_switch.dart
@@ -210,9 +210,9 @@ class _FlutterSwitchState extends State<FlutterSwitch>
210
return GestureDetector(
211
onTap: () {
212
if (widget.value)
213
- _animationController.reverse();
214
- else
215
_animationController.forward();
+ else
+ _animationController.reverse();
216
217
widget.onToggle(!widget.value);
218
},
0 commit comments