PaddingAct class
Animates widget padding.
Smoothly transitions padding from one EdgeInsets value to another. Useful for creating spacing animations or opening/closing panels.
- Inheritance
Constructors
-
PaddingAct({EdgeInsetsGeometry from = EdgeInsets.zero, EdgeInsetsGeometry to = EdgeInsets.zero, CueMotion? motion, ReverseBehavior<
EdgeInsetsGeometry> reverse = const ReverseBehavior.mirror(), Duration delay = Duration.zero}) -
Animates padding values.
const
-
PaddingAct.keyframed({required Keyframes<
EdgeInsetsGeometry> frames, Duration delay = Duration.zero, KFReverseBehavior<EdgeInsetsGeometry> reverse = const KFReverseBehavior.mirror()}) -
Animates padding through multiple keyframe states.
const
Properties
- delay → Duration
-
Delay before this act's forward animation starts.
finalinherited
-
frames
→ Keyframes<
EdgeInsetsGeometry> ? -
Keyframes for this act (keyframed mode only).
finalinherited
- from → EdgeInsetsGeometry?
-
The initial animated value for this tween.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConstant → bool
-
Whether this tween is a no-op (from == to).
no setterinherited
- key → ActKey
-
The unique identifier for this act type.
final
- motion → CueMotion?
-
Per-act motion override. When non-null, replaces the motion inherited
from Actor or Cue for this act only.
finalinherited
-
reverse
→ ReverseBehaviorBase<
EdgeInsetsGeometry> -
Reverse behavior for this act — controls what happens when the animation
plays in reverse.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- to → EdgeInsetsGeometry?
-
The final animated value for this tween (tween mode only).
finalinherited
Methods
-
apply(
BuildContext context, covariant CueAnimation< EdgeInsetsGeometry> animation, Widget child) → Widget -
Applies the animated value to
childand returns the resulting widget. -
applyInternal(
BuildContext context, covariant CueAnimation< Object?> animation, Widget child) → Widget -
Delegates to
applyafter asserting thatanimationhas the expected typeCueAnimation<R>.inherited -
buildAnimation(
CueTimeline timline, ActContext context) → CueAnimation< EdgeInsetsGeometry> -
Builds and registers the animation tracks on
timline, returning a CueAnimation that provides the current animated value at each frame.inherited -
buildAnimtable(
ActContext context) → CueAnimtable< EdgeInsetsGeometry> -
Assembles the forward and reverse animatables into a single
CueAnimtable, wrapping them in a DualAnimatable when a separate
reverse animatable is present.
inherited
-
buildTweens(
ActContext context) → (CueAnimtable< EdgeInsetsGeometry> , CueAnimtable<EdgeInsetsGeometry> ?) -
Implements the core reverse behavior logic for tween and keyframed acts.
inherited
-
createSingleTween(
EdgeInsetsGeometry from, EdgeInsetsGeometry to) → Animatable< EdgeInsetsGeometry> -
Creates a single Animatable from
fromtotovalues.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
ActContext context) → ActContext -
Resolves the final ActContext for this act by calling resolveMotion.
inherited
-
resolveTween(
ActContext context, {required EdgeInsetsGeometry? from, required EdgeInsetsGeometry? to, EdgeInsetsGeometry? iniitalkeyframe, EdgeInsetsGeometry? implicitFrom, bool forReverse = false, required Keyframes< EdgeInsetsGeometry> ? keyframes}) → CueAnimtable<EdgeInsetsGeometry> -
Builds a CueAnimtable from tween or keyframe values.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
ActContext _, EdgeInsetsGeometry value) → EdgeInsetsGeometry -
Identity transform — returns the input value unchanged.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited