PlAnimateGrow class
Content unfolding from a point.
const PlAnimateGrow(
origin: Alignment.topCenter,
child: PlBox(child: Text('Sort, group and column visibility.')),
)
The difference from PlAnimateZoom is origin and how far it travels: a grow starts close to its final size and can be anchored to an edge, so it reads as something opening out of the thing beside it — a panel out of a toolbar, a card out of the row it belongs to. A zoom starts much smaller and always from the middle.
Short travel is what makes it safe on glass. A sheet growing from 0.8
stays recognisably the same sheet the whole way, and what is behind it never
has to resolve a surface a fifth of the size it is about to be.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PlAnimateGrow
Constructors
- PlAnimateGrow({required Widget child, PlassAnimateMode mode = PlassAnimateMode.enter, double from = 0.8, Alignment origin = Alignment.center, bool fade = true, Duration duration = const Duration(milliseconds: 320), 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 grow.
const
Properties
- alternate → bool
-
Runs every other pass backwards, so a repeat returns instead of jumping.
final
- child → Widget
-
What unfolds.
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
- duration → Duration
-
How long one run takes.
final
- fade → bool
-
Fades in as it grows.
final
- from → double
-
The scale it starts from, as a multiple of its final size.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mode → PlassAnimateMode
-
Whether the content unfolds or folds away.
final
- once → bool
-
With PlassAnimateTrigger.visible, whether it runs only the first time.
final
- origin → Alignment
-
Which point stays put while the rest moves.
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 - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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