RotateAnimatedText class

Animated Text that rotates a Text in and then out.

Rotate example

Inheritance

Constructors

RotateAnimatedText(String text, {TextAlign textAlign = TextAlign.start, TextStyle? textStyle, Duration duration = const Duration(milliseconds: 2000), double? transitionHeight, AlignmentGeometry alignment = Alignment.center, TextDirection textDirection = TextDirection.ltr, bool rotateOut = true})

Properties

alignment AlignmentGeometry
Adds AlignmentGeometry property to the text in the widget.
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 setterinherited
rotateOut bool
Controls whether the text:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text for Text widget.
finalinherited
textAlign TextAlign
TextAlign property for Text widget.
finalinherited
textCharacters Characters
Same as text but as Characters.
finalinherited
textDirection TextDirection
Specifies the TextDirection for resolving alignment.
final
textStyle TextStyle?
TextStyle property for Text widget.
finalinherited
transitionHeight double?
Transition height.
final

Methods

animatedBuilder(BuildContext context, Widget? child) Widget
Widget showing animated text, based on animation value(s).
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