Created
July 12, 2019 13:30
-
-
Save flutter-devs/85ebd7bd8da22b8f7e6e2bfca62b1474 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onTap: () { | |
if (_animationController.isCompleted) { | |
_animationController.reverse(); | |
} else { | |
_animationController.forward(); | |
} | |
widget.value == false | |
? widget.onChanged(true) | |
: widget.onChanged(false); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment