PlAnimateAppear class
A list of things settling into place one after another.
PlAnimateAppear(
spacing: 8,
children: <Widget>[
for (final Service service in services) PlCard(title: Text(service.name)),
],
)
Each child takes the same short drift and fade, held back by its position — so the effect belongs to the set rather than to any one item, and a reader's eye is walked down the list in the order it should be read.
The stagger is per child, which means what you pass matters: eight children are eight steps, and one child holding eight things is one step. That is also how to opt part of a list out — group it.
It lays its children out, which the React build does not have to: there is
no stylesheet here to put a display: flex on the container, so
orientation and spacing are what a className would have done. Anything
more elaborate than a row or a column belongs inside one child, which also
makes that whole arrangement one step of the stagger.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PlAnimateAppear
Constructors
-
PlAnimateAppear({required List<
Widget> children, PlassOrientation orientation = PlassOrientation.vertical, double spacing = 0, Duration stagger = const Duration(milliseconds: 70), PlassSide from = PlassSide.bottom, double distance = 12, bool fade = true, bool reverse = false, Duration duration = const Duration(milliseconds: 380), Duration delay = Duration.zero, Curve? curve, int? repeat = 1, bool alternate = false, bool paused = false, PlassAnimateTrigger trigger = PlassAnimateTrigger.mount, bool play = false, bool once = true, double threshold = defaultVisibleThreshold, Key? key}) -
Creates a staggered set.
const
Properties
- alternate → bool
-
Runs every other pass backwards, so a repeat returns instead of jumping.
final
-
children
→ List<
Widget> -
The things that appear, one after another.
final
- curve → Curve?
-
The easing curve. The house curve when nothing says otherwise.
final
- delay → Duration
-
How long before it starts. Counted once, before the first run.
final
- distance → double
-
How far each child travels, in logical pixels.
final
- duration → Duration
-
How long one run takes.
final
- fade → bool
-
Fades each child in as it settles.
final
- from → PlassSide
-
Which edge each child drifts in from.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- once → bool
-
With PlassAnimateTrigger.visible, whether it runs only the first time.
final
- orientation → PlassOrientation
-
Which way the set runs.
final
- paused → bool
-
Holds the animation where it is.
final
- play → bool
-
Runs it, when trigger is PlassAnimateTrigger.manual. Each
false→truestarts it over.final - repeat → int?
-
How many times it runs.
nullnever stops.final - reverse → bool
-
Runs the list from the last child to the first.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double
-
The gap between children, in logical pixels.
final
- stagger → Duration
-
How long after one child the next one starts.
final
- threshold → double
-
With PlassAnimateTrigger.visible, how much of the widget has to be on
screen before it counts as visible, from
0to1.final - trigger → PlassAnimateTrigger
-
What starts it.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
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
-
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