Skip to content
pubscout

fly_to_target

1.6.1, released 10 months ago by an unverified publisher

Animate multiple widgets flying to target positions simultaneously in Flutter.

WASM-ready
$ flutter pub add fly_to_target
Source repository

What it does

Allows animating multiple widgets simultaneously to one or more targets using customizable paths, pre-phase spread animations, effects, and decorative particle trails.

AI-written summary of version 1.6.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to animate items like coins or shopping items flying into a cart or wallet.
  • You want custom paths like bezier curves or parabolas for moving UI elements.
  • You need particle or star trail effects attached to moving widgets.

Skip it when

  • You are looking for page routing or navigation animations between screens.
  • You need standard state-driven implicit or explicit UI transitions without flying targets.

Strengths

  • Supports multiple animation paths like linear, parabolic, and bezier curves.
  • Includes pre-phase spread animations and various decorative particle effects.
  • Provides a controller-based API with progress-based callback triggers.

Weaknesses

  • Relies on imperative controller usage rather than purely declarative widget trees.
  • Target and item positions heavily depend on GlobalKeys.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final _controller = FlyToTargetController();

Future<void> _flyAll() async {
  await _controller.flyAll(
    items: items,
    target: FlyTargetFromKey(_targetKey),
  );
}

Alternatives

Packages that do the same job and could replace fly_to_target.

  • animations

    Choose animations for standard Material motion patterns like container transforms and shared axis transitions.