Created
April 22, 2020 19:38
-
-
Save felixblaschke/f157954cdc57e8f8c20f2dfd9d36ff41 to your computer and use it in GitHub Desktop.
sa2-1.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
| PlayAnimation<Color>( // <-- specify type of animated variable | |
| tween: Colors.red.tweenTo(Colors.blue), // <-- define tween of colors | |
| builder: (context, child, value) { // <-- builder function | |
| return Container( | |
| color: value, // <-- use animated value | |
| width: 100, | |
| height: 100 | |
| ); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment