TransitionBuilderPage<T> class

A page that creates a PageRoute with customizable transition.

Similar to the PageRouteBuilder, callers must define the pageBuilder function which creates the route's primary contents. To add transitions define the transitionsBuilder function.

See also:

Inheritance

Constructors

TransitionBuilderPage({@required RoutePageBuilder pageBuilder, RouteTransitionsBuilder transitionsBuilder: _defaultTransitionsBuilder, Duration transitionDuration: const Duration(milliseconds: 300), bool opaque: true, bool barrierDismissible: false, Color barrierColor, String barrierLabel, bool maintainState: true, bool fullscreenDialog: false, LocalKey key, String name, Object arguments})
Creates a TransitionBuilderPage.
const

Properties

arguments Object
The arguments passed to this route. [...]
final, inherited
barrierColor Color
The color to use for the modal barrier. If this is null, the barrier will be transparent. [...]
final
barrierDismissible bool
Whether you can dismiss this route by tapping the modal barrier. [...]
final
barrierLabel String
The semantic label used for a dismissible barrier. [...]
final
fullscreenDialog bool
Whether this page route is a full-screen dialog. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
key LocalKey
The key associated with this page. [...]
final, inherited
maintainState bool
Whether the route should remain in memory when it is inactive. [...]
final
name String
The name of the route (e.g., "/settings"). [...]
final, inherited
opaque bool
Whether the route obscures previous routes when the transition is complete. [...]
final
pageBuilder RoutePageBuilder
Used build the route's primary contents. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
transitionDuration Duration
The duration the transition going forwards. [...]
final
transitionsBuilder RouteTransitionsBuilder
Used to build the route's transitions. [...]
final

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page. [...]
inherited
copyWith({String name, Object arguments}) RouteSettings
Creates a copy of this route settings object with the given fields replaced with the new values.
inherited
createRoute(BuildContext context) Route<T>
Creates the Route that corresponds to this page. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited