TrackingEffect class
Spreads characters apart horizontally like adjustable letter-spacing.
Characters move outward from the center (or from the left edge when fromCenter is false) by spacing pixels, creating a tracking/tracking-in animation. Useful for title reveals where letters spread into position.
- Inheritance
-
- Object
- TextEffect
- TrackingEffect
Constructors
Properties
- curve → Curve
-
Curve applied to the animation timing for easing.
finalinherited
- delayBetweenChars → Duration
-
Delay between each successive character's animation start.
finalinherited
- duration → Duration
-
Total duration of one full animation cycle for a single character.
finalinherited
- fromCenter → bool
-
When true, characters spread outward symmetrically from the text center.
When false, characters spread rightward from the first character.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double
-
Final horizontal distance between adjacent character centers in pixels.
final
Methods
-
applyCurve(
double t) → double -
Applies the effect's curve to a linear value
t(0.0–1.0).inherited -
getAnimations(
double progress, int charCount) → List< CharacterAnimation> -
Produces a list of per-character animations for the given
progress.override -
getTotalDuration(
int charCount) → Duration -
Returns the total duration needed to animate all
charCountcharacters.inherited -
noise(
int index, [int offset = 0]) → double -
Returns a deterministic pseudo-random value (0.0–1.0) for the given
indexand optionaloffset.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
staggeredProgress(
double globalProgress, int index, int charCount) → double -
Computes the per-character progress for staggered animations.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited