EasyTransition class

Inheritance

Constructors

EasyTransition({required Widget child, required Widget pageToPush, Curve? curve, Curve? reverseCurve, int? reverseTransitionDurationMilliseconds, int? transitionDurationMilliseconds, Alignment? transitionAlignment, bool isDisabled = false})
the default constructor will push a scale transition
EasyTransition.fade({required Widget child, required Widget pageToPush, bool isDisabled = false})
the default constructor will push a fade transition
EasyTransition.fadePushAndRemoveUntil({required Widget child, required Widget pageToPush, bool? newRoute = false, bool isDisabled = false})
the default constructor will PushAndRemoveUntil a fade transition
EasyTransition.fadePushReplacement({required Widget child, required Widget pageToPush, bool? newRoute = false, bool isDisabled = false})
the default constructor will PushReplacement a fade transition
EasyTransition.scalePushAndRemoveUntil({required Widget child, required Widget pageToPush, Curve? curve, Curve? reverseCurve, int? reverseTransitionDurationMilliseconds, int? transitionDurationMilliseconds, Alignment? transitionAlignment, bool? newRoute = false, bool isDisabled = false})
the default constructor will PushAndRemoveUntil a scale transition
EasyTransition.scalePushReplacement({required Widget child, required Widget pageToPush, Curve? curve, Curve? reverseCurve, int? reverseTransitionDurationMilliseconds, int? transitionDurationMilliseconds, Alignment? transitionAlignment, bool isDisabled = false})
the default constructor will PushReplacement a scale transition

Properties

child Widget
required params for all constructors child is the clickable widget to activate the navigation
final
curve Curve?
the push animation type of the scale navigation
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isDisabled bool
to disable the transition
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
newRoute bool?
getter/setter pair
pageToPush Widget
pageToPush is the destination page to navigate to
final
reverseCurve Curve?
the pop animation type of the scale navigation
getter/setter pair
reverseTransitionDurationMilliseconds int?
reverseTransitionDurationMilliseconds the time for the pop animation default reverseTransitionDurationMilliseconds = 200
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transitionAlignment Alignment?
the starting point for the scale animation
getter/setter pair
transitionDurationMilliseconds int?
optional params for all scale constructors and the default constructor transitionDurationMilliseconds the time for the push animation default transitionDurationMilliseconds = 500
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _EasyTransitionState
for future custom support
override
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
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}) 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