Skip to content

Instantly share code, notes, and snippets.

@felixblaschke
Created April 25, 2020 07:32
Show Gist options
  • Select an option

  • Save felixblaschke/c96d711e2df5c7af2d978d3d069da42a to your computer and use it in GitHub Desktop.

Select an option

Save felixblaschke/c96d711e2df5c7af2d978d3d069da42a to your computer and use it in GitHub Desktop.
saw6.dart
return PlayAnimation<double>( // <-- set animatino type
duration: 800.milliseconds,
curve: Curves.easeInOut,
tween: 0.0.tweenTo(200.0), // <-- double tween
builder: (context, child, value) {
return Container( // <-- return a Container
width: value, // <-- use animated value for width
height: value, // <-- use animated value for height
color: Colors.green,
);
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment