LedgerPageTransitions class
Ledger's page motion, for a PageTransitionsTheme: a pushed page is a
leaf laid down on the ledger. It fades in as it rises the last rise
onto the page, in LedgerMotion.base on LedgerMotion.out; a pop lifts
it off the same way, and the page under it stays where it is. Under
reduced motion it lands at once. A destination chosen from the side bar,
the rail or the tab bar is no push: it changes in place.
The host sets it on the Material Ledger is built on, so a LedgerPage
and that library's page routes take it. Flutter's own MaterialPageRoute
reads the app's ThemeData instead: give it ledgerPageTransitions there
too, as the README's install does. On iOS it replaces Cupertino's slide,
and with it the edge swipe back, which is that slide's own:
ledgerPageTransitions puts the swipe back round it there (ui_core's
DesignSwipeBackPageTransitionsBuilder).
const PageTransitionsTheme(builders: {TargetPlatform.android: LedgerPageTransitions()})
- Inheritance
-
- Object
- PageTransitionsBuilder
- LedgerPageTransitions
Constructors
- LedgerPageTransitions()
-
Ledger's page motion.
const
Properties
- delegatedTransition → DelegatedTransitionBuilder?
-
Provides a secondary transition to the previous route.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- reverseTransitionDuration → Duration
-
The duration the transition going in reverse.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionDuration → Duration
-
The duration the transition going forwards.
no setteroverride
Methods
-
buildTransitions<
T> (PageRoute< T> route, BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) → Widget -
Wraps the child with one or more transition widgets which define how
routearrives on and leaves the screen.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited