Transition class

A class that represents a transition.

It can be used to create custom transitions for the overlay.

It can be chained with other transitions using the and method or the extension methods.

Example:

context.show(
  (_) => const Text('Hello'),
  transition: Transition.fade().and(Transition.scale()),
);

or

context.show(
  (_) => const Text('Hello'),
  transition: Transition.fade().scale(),
);
Available extensions

Constructors

Transition.fade({Curve curve = Curves.easeInOut})
A transition that fades the child in and out.
factory
Transition.rotation({Curve curve = Curves.easeInOut})
A transition that rotates the child.
factory
Transition.scale({Curve curve = Curves.easeInOut})
A transition that scales the child.
factory
Transition.slideFromBottom({Curve curve = Curves.easeOut})
A transition that slides the child from the bottom.
factory
Transition.slideFromBottomLeft({Curve curve = Curves.easeOut})
A transition that slides the child from the bottom left.
factory
Transition.slideFromBottomRight({Curve curve = Curves.easeOut})
A transition that slides the child from the bottom right.
factory
Transition.slideFromLeft({Curve curve = Curves.easeOut})
A transition that slides the child from the left.
factory
Transition.slideFromRight({Curve curve = Curves.easeOut})
A transition that slides the child from the right.
factory
Transition.slideFromTop({Curve curve = Curves.easeOut})
A transition that slides the child from the top.
factory
Transition.slideFromTopLeft({Curve curve = Curves.easeOut})
A transition that slides the child from the top left.
factory
Transition.slideFromTopRight({Curve curve = Curves.easeOut})
A transition that slides the child from the top right.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

and(Transition other) Transition
Chains another transition to this transition.
call(AnimationController controller, Widget child) Widget
Builds the transition.
fade({Curve curve = Curves.easeInOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a fade transition.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotation({Curve curve = Curves.easeInOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a rotation transition.
scale({Curve curve = Curves.easeInOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a scale transition.
slideFromBottom({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from bottom transition.
slideFromBottomLeft({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from bottom left transition.
slideFromBottomRight({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from bottom right transition.
slideFromLeft({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from left transition.
slideFromRight({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from right transition.
slideFromTop({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from top transition.
slideFromTopLeft({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from top left transition.
slideFromTopRight({Curve curve = Curves.easeOut}) Transition

Available on Transition, provided by the TransitionExtensions extension

Chains a slide from top right transition.
toString() String
A string representation of this object.
inherited

Operators

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