Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created September 3, 2018 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinusX/e9582accf374299a867fe2793dac319b to your computer and use it in GitHub Desktop.
Save MarcinusX/e9582accf374299a867fe2793dac319b to your computer and use it in GitHub Desktop.
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