flying_animation 0.0.5
flying_animation: ^0.0.5 copied to clipboard
A Flutter package that provides a beautiful flying animation effect for any widget. Perfect for like animations, celebrations, and UI feedback.
Features #
This package provides a widget that can fly an image from one position to another.
Not only image, but also you can fly any widget.
You can control flying height.
Also you can control speed using duration parameter of AnimationController.
Usage #
FlyingImageWidget(
animationController: animationController,
coverWidget: Icon(Icons.favorite, color: Colors.red),
child: Icon(Icons.favorite, color: Colors.red),
)
Parameters #
| name | Type | required | Default Value | Usage |
|---|---|---|---|---|
| coverWidget | Widget | false | null | This widget is on top widget. no fly. |
| flyHeight | double | false | 100 | Flying widget can fly up to a specified height. |
| isTopStart | bool | false | false | If it is true, fly widget start animation on top of coverWidget. |
| isShake | bool | false | true | If it is false, the fly widget does not shake during animating. |
| animationController | AnimationController | true | null | You can controll animation using AnimationController class. The animation speed is set by duration parameter. If you start animation, _animationController.reset() _animationController.forward() must be implemented in order. |
| child | Widget | true | null | This widget randomly swings and flies upward. |