Skip to content

Instantly share code, notes, and snippets.

@kishan2612
Created December 29, 2018 14:50
Show Gist options
  • Save kishan2612/05970450935f7e2987c0dc575560a34e to your computer and use it in GitHub Desktop.
Save kishan2612/05970450935f7e2987c0dc575560a34e to your computer and use it in GitHub Desktop.
custom navigation drawer front view animations
/*
FrontView Slide Animation
*/
Animation<Offset> _getSlideAnimation() {
return Tween(begin: Offset(0.85, 0.0), end: Offset(0, 0)).animate(
CurvedAnimation(parent: widget._controller, curve: Curves.linear));
}
/*
Front View Scale Animation
*/
Animation<double> _getScaleAnimation() {
return Tween(begin: 0.7, end: 1.0).animate(
CurvedAnimation(parent: widget._controller, curve: Curves.linear));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment