Skip to content

Instantly share code, notes, and snippets.

@flutter-devs
Created July 12, 2019 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flutter-devs/85ebd7bd8da22b8f7e6e2bfca62b1474 to your computer and use it in GitHub Desktop.
Save flutter-devs/85ebd7bd8da22b8f7e6e2bfca62b1474 to your computer and use it in GitHub Desktop.
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