Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save felixblaschke/a7eb431c8ec362b6fc923ab416a95095 to your computer and use it in GitHub Desktop.
saw5.dart
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return PlayAnimation<int>(
duration: 5.seconds, // <-- set duration
curve: Curves.easeIn, // <-- apply non-linear curve
tween: 0.tweenTo(64736),
builder: (context, child, value) {
return Text("$value likes", style: TextStyle(fontSize: 30));
},
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment