Created
April 25, 2020 07:28
-
-
Save felixblaschke/a7eb431c8ec362b6fc923ab416a95095 to your computer and use it in GitHub Desktop.
saw5.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
| 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