Created
April 25, 2020 07:32
-
-
Save felixblaschke/c96d711e2df5c7af2d978d3d069da42a to your computer and use it in GitHub Desktop.
saw6.dart
This file contains hidden or 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
| 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