Ready-made insert/remove transitions.
The parameterless ones are const-friendly static methods and can be used
as default values; the *From, sizeAxis and combine helpers return a
configured builder.
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
-
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
Static Methods
-
combine(
List< DiffTransitionBuilder> builders) → DiffTransitionBuilder -
Applies
buildersfrom last to first (the first one ends up outermost). -
fade(
BuildContext c, Widget child, Animation< double> a) → Widget - Fades the item.
-
none(
BuildContext c, Widget child, Animation< double> a) → Widget - No animation: the item pops in and out.
-
scale(
BuildContext c, Widget child, Animation< double> a) → Widget - Scales the item around its centre.
-
scaleAndFade(
BuildContext c, Widget child, Animation< double> a) → Widget - scale and fade together. Default for grids.
-
scaleFrom(
double begin, {Alignment alignment = Alignment.center}) → DiffTransitionBuilder -
Scale from
beginto 1 aroundalignment. -
size(
BuildContext c, Widget child, Animation< double> a) → Widget - Grows and shrinks the item along the main axis (vertical).
-
sizeAndFade(
BuildContext c, Widget child, Animation< double> a) → Widget - size and fade together. Default for lists.
-
sizeAxis(
Axis axis) → DiffTransitionBuilder -
Size transition along
axis. -
slide(
BuildContext c, Widget child, Animation< double> a) → Widget - Slides the item in from the right.
-
slideAndFade(
BuildContext c, Widget child, Animation< double> a) → Widget - slide, size and fade together.
-
slideFrom(
Offset begin) → DiffTransitionBuilder -
Slides in from
begin(a fraction of the item size).