MotionFlightShuttleBuilder typedef

MotionFlightShuttleBuilder = Widget Function(BuildContext context, Animation<double> animation, Widget fromChild, Widget toChild)

Builds the in-flight widget for a shared-element transition. animation runs 0→1 over the flight (already shaped by the scope's curve); fromChild is the widget that previously held the id and toChild the one that now holds it.

Implementation

typedef MotionFlightShuttleBuilder = Widget Function(
  BuildContext context,
  Animation<double> animation,
  Widget fromChild,
  Widget toChild,
);