TypewriterAnimatedText class

Animated Text that displays a Text element as if it is being typed one character at a time. Similar to TyperAnimatedText, but shows a cursor.

Typewriter example

Inheritance

Constructors

TypewriterAnimatedText(String text, {TextAlign textAlign = TextAlign.start, TextStyle? textStyle, Duration speed = const Duration(milliseconds: 30), Curve curve = Curves.linear, String cursor = '_'})

Properties

cursor → String
Cursor text. Defaults to underscore.
final
curve → Curve
The Curve of the rate of change of animation over time.
final
duration → Duration
The Duration for the Animation Controller.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
remaining → Duration
Return the remaining Duration for the Animation (when applicable).
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speed → Duration
The Duration of the delay between the apparition of each characters
final
text → String
Text for Text widget.
finalinherited
textAlign → TextAlign
TextAlign property for Text widget.
finalinherited
textCharacters → Characters
Same as text but as Characters.
finalinherited
textStyle → TextStyle?
TextStyle property for Text widget.
finalinherited

Methods

animatedBuilder(BuildContext context, Widget? child) → Widget
Widget showing partial text
override
completeText(BuildContext context) → Widget
Widget showing the complete text (when animation is complete or paused). By default, it shows a Text widget, but this may be overridden.
override
initAnimation(AnimationController controller) → void
Initialize the Animation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
textWidget(String data) → Widget
Utility method to create a styled Text widget using the textAlign and textStyle, but you can specify the data.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants