fly_to_target 1.5.0
fly_to_target: ^1.5.0 copied to clipboard
A Flutter package for animating multiple widgets flying to target positions simultaneously with customizable paths and effects.
1.5.0 #
Added #
- Progress-based callback triggers for
flyAllmethodspreadTriggerAt- Progress (0.0-1.0) at which to trigger spread callbackflyTriggerAt- Progress (0.0-1.0) at which to trigger fly callback- Allows triggering haptics/effects before animation completes
- Updated example with sliders to test trigger points
1.4.0 #
Added #
onSpreadCompletecallback forflyAllmethod- Called each time an individual item completes its spread phase
- Receives the index of the item that finished spreading
- Useful for triggering haptics or effects when items spread out
1.3.0 #
Added #
onItemCompletecallback forflyAllmethod- Called each time an individual item reaches its target
- Receives the index of the completed item
- Stagger delay slider in Star Trail example
1.2.0 #
Added #
StarTrailDecorationConfig- Stars trailing behind items like game effectscount- Number of stars in the trailstartDistance- Distance from item to first starspreadWidth- Horizontal spread widthtwinkle- Twinkle animation effect
- New example: Star Trail demo
1.1.0 #
Added #
- Pre-phase animation support with
SpreadPhaseConfig- Items can gather at a point and spread before flying to target
- New factory methods:
FlyAnimationConfig.spreadAndFly()- Spread from point then fly to targetFlyAnimationConfig.cart()- Add to cart animation (parabolic + scale + fade)FlyAnimationConfig.heart()- Like/burst animation (bezier + rotation + particles)FlyAnimationConfig.gameReward()- Game reward collection (bezier + rotation + sparkles)
- New example: Spread & Fly demo
Changed #
- Updated existing examples to use new factory methods
1.0.1 #
Changed #
- Converted README videos from mp4 to GIF for pub.dev compatibility
- Updated README version reference to 1.0.0
1.0.0 #
Added #
- First stable release
- Translated all documentation comments to English
- Added 5 custom animation examples:
- Custom Path (spiral, wave, zigzag, bounce)
- Decoration Effects (feather, particle, sparkle)
- Full Effects (adjustable parameters with sliders)
- Heart Burst
- Game Rewards
Removed #
- Empty directories
0.1.0 #
Initial release with the following features:
Core Features #
FlyToTargetControllerfor managing animationsFlyItemandFlyTargetfor defining start/end positions- Support for
GlobalKeyandOffsetbased positioning FlyToTargetScopewidget for easy controller management
Animation Paths #
LinearPathConfig- Straight line movementParabolicPathConfig- Arc/parabola trajectoryBezierPathConfig- Smooth bezier curves with auto-calculationCustomPathConfig- Custom path functions
Effects #
RotationEffect- Rotate widgets during flightScaleEffect- Scale up/down during animationFadeEffect- Fade in/outTrailEffect- Leave a trail behind
Decorations #
FeatherDecorationConfig- Floating feather particlesParticleDecorationConfig- Particle effectsSparkleDecorationConfig- Sparkling starsCustomDecorationConfig- Custom widget builder
Presets #
FlyAnimationConfig.simple()- Basic linear animationFlyAnimationConfig.parabolic()- Arc trajectoryFlyAnimationConfig.bezier()- Smooth curveFlyAnimationConfig.coin()- Full effects for coin animations