hero_here library
Hero flights within one screen, with no navigation: a HeroHereSwitcher flies the HeroHere widgets in its child between their places whenever its child changes.
Classes
- HeroHere
- A child that flies, when a HeroHereSwitcher's child changes, from where the hero with its tag was to where it is now.
- HeroHereSwitcher
- Flies HeroHere widgets between their places in child when child changes.
Enums
- HeroHereFlightRedirect
- What a flight does when the hero it flies to changes while it flies, such as when the switcher's child changes again mid-flight.
Typedefs
- AnimationControllerFactory = HeroHereFlightAnimationControllerFactory
- The old name of HeroHereFlightAnimationControllerFactory.
-
AnimationFactory<
T> = Animation< T> Function(AnimationController controller) - The old name of HeroHereFlightAnimationFactory, generic in the value of the animation.
- HeroHereFlightAnimationControllerFactory = AnimationController Function(TickerProvider tickerProvider, Duration duration)
- Makes the controller that drives a flight, from the flight's duration.
-
HeroHereFlightAnimationFactory
= Animation<
double> Function(AnimationController controller) - Makes the animation a flight runs on from its controller, such as a CurvedAnimation.
- HeroHereFlightAnimationStarter = TickerFuture Function(AnimationController controller, {double? from})
-
Starts a flight's controller forward or in reverse,
froma value if given, and returns its ticker's future. - HeroHereFlightRectTweenFactory = RectTween Function(Rect? begin, Rect? end)
-
Makes the tween of the rect a flight's shuttle takes, from where its leg
begins to where the hero it lands on is, itsend. Once the flight turns around, the rest of it takes a tween between where it turned and where the hero it heads for is, backward if it heads back. It's called on every frame of the flight with where that hero is on that frame, so the shuttle follows the hero when it moves. -
HeroHereFlightShuttleBuilder
= Widget Function(BuildContext flightContext, Animation<
double> animation, HeroHere fromHero, HeroHere toHero) -
Builds a flight's shuttle, what it shows as it flies, from
animation, which runs from 0 at the hero the flight leaves,fromHero, to 1 at the hero it flies to,toHero. A flight that turns back runs it in reverse, with the same two heroes.flightContextis the flight's context in the switcher's sky. - HeroHereSwitcherLayoutBuilder = Widget Function(Widget child, Widget sky)
-
Lays out a HeroHereSwitcher's
childand itssky, the layer its flights fly in. See HeroHereSwitcher.layoutBuilder. - RectTweenFactory = HeroHereFlightRectTweenFactory
- The old name of HeroHereFlightRectTweenFactory.
- StartAnimationCaller = HeroHereFlightAnimationStarter
- The old name of HeroHereFlightAnimationStarter.