Instantly share code, notes, and snippets.

Embed
What would you like to do?
class AnimatedPlaneIcon extends AnimatedWidget {
AnimatedPlaneIcon({Key key, Animation<double> animation})
: super(key: key, listenable: animation);
@override
Widget build(BuildContext context) {
Animation<double> animation = super.listenable;
return Icon(
Icons.airplanemode_active,
color: Colors.red,
size: animation.value,
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment