Animating Flutter Widgets using fly_animation

fly_animation: ^0.0.2
  • animationEndKey: key of the widget where the animation ends. You need to declare and pass GlobalKey to the widget where your animation ends.
  • countOfAnimationWidgets: number of animation widgets that need to be created. countOfAnimationWidgets field value must be greater than 0.
  • topPosition: top position of the animation widget to display on the screen. topPosition value must be greater than or equal to 0.
  • childWidget: widgets tree to be displayed on the screen. The parent widget of the screen must be FlyAnimationWidget. The widget tree that you want to show on the screen must be passed to childWidget field.
  • animationWidget: Its type is Widget so you can pass any widget that you want to animate to this field.
  • animationWidgetWidth: Its value must be greater than 0. The width of the widget that you want to animate.
  • animationWidgetHeight: Its value must be greater than 0. The height of the widget that you want to animate.
  • animationDurationInMillis: animation duration in milliseconds
  • hideAnimationWidgetOnComplete: Pass true if you want to hide animation widget on animation complete & pass false if you don’t want to hide it.
Example of fly_animation

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store