Skip to content

Instantly share code, notes, and snippets.

@felixblaschke
Created April 22, 2020 19:38
Show Gist options
  • Select an option

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

Select an option

Save felixblaschke/f157954cdc57e8f8c20f2dfd9d36ff41 to your computer and use it in GitHub Desktop.
sa2-1.dart
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