MorpheusPageTransition class
Builds a parent-child material design navigation transition.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MorpheusPageTransition
Constructors
-
MorpheusPageTransition({RenderBox? renderBox, Size? renderBoxSize, Offset? renderBoxOffset, required BuildContext context, required Animation<
double> animation, required Animation<double> secondaryAnimation, required Widget child, required MorpheusRouteArguments settings})
Properties
-
animation
→ Animation<
double> -
final
- borderRadius → BorderRadiusTween
-
Returns a BorderRadiusTween with an initial value of
settings.borderRadius
.no setter - child → Widget
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
parentToChildAnimation
→ Animation<
double> -
Returns an Animation used to animate the transition from the parent widget
to the child widget.
no setter
-
positionAnimationCurve
→ Animation<
double> -
Returns a curve that can be applied to all transitions that are
synchronized with positionTween.
no setter
- renderBox → RenderBox?
-
The RenderBox used to calculate the origin of the parent-child
transition. Used to determine which transition will be used.
final
- renderBoxOffset → Offset?
-
The calculated Offset of renderBox. Used by buildVerticalTransition
or buildBidirectionalTransition to determine the initial position of
the child screen.
final
- renderBoxSize → Size?
-
The size of renderBox. Used by buildVerticalTransition or
buildBidirectionalTransition to determine the initial size of the child
screen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secondaryAnimation
→ Animation<
double> -
final
- settings → MorpheusRouteArguments
-
final
- transitionContext → BuildContext
-
final
- transitionWidget → Widget?
-
Returns a Widget that is an exact copy of the widget which
settings.parentKey
is attached to, if that widget is of a supported type. If the widget is not a supported type this getter will return null.no setter - useVerticalTransition → bool
-
Returns true if the parent widget spans the entire width of the screen.
no setter
Methods
-
build(
BuildContext context) → Widget -
Builds the transition, uses either buildVerticalTransition,
buildDefaultTransition, or buildBidirectionalTransition
depending on useVerticalTransition.
override
-
buildBidirectionalTransition(
Widget childScreen) → Widget - Builds a bidirectional parent-child transition.
-
buildDefaultTransition(
) → Widget - Builds a simple transition where a child screen is faded and scaled in with a colored scrim.
-
buildVerticalTransition(
Widget childScreen) → Widget - Builds a vertical parent-child transition.
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
positionTween(
BoxConstraints constraints) → RelativeRectTween - Returns a RelativeRectTween that is used to animate from the origin of renderBox to the size of the screen.
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited