AnimatedText class
Animated text widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedText
Constructors
- AnimatedText(String text, {Key? key, TextStyle? style, Duration duration = const Duration(milliseconds: 350), bool reversed = false, Curve positionCurve = Curves.decelerate, Curve opacityToCurve = Curves.easeInQuart, Curve opacityFromCurve = Curves.easeOutQuart, TextAlign textAlign = TextAlign.left, bool useOpacity = true})
-
const
Properties
- duration → Duration
-
The duration over which to animate the parameters of this container.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- opacityFromCurve → Curve
-
Curve, which describes how is changing opacity of old tokens on
their switching
final
- opacityToCurve → Curve
-
Curve, which describes how is changing opacity of new tokens on
their switching
final
- positionCurve → Curve
-
Curve, which describes how is switching a tokens in the words
final
- reversed → bool
-
If reversed is true, then letter, which was greater in
letter.compareTo(oldLetter)
will be at bottom, if false - at top. reversed is false 0 _ 1 -> 0 _ 1 reversed is true 1 _ 0 -> 1 _ 0final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
If non-null, the style to use for this text.
If the style's "inherit" property is true, the style will be merged with
the closest enclosing DefaultTextStyle. Otherwise, the style will
replace the closest enclosing DefaultTextStyle.
final
- text → String
-
Text, which will we printed
final
- textAlign → TextAlign
-
Text align for not animated widget
final
- useOpacity → bool
-
Use opacity while tokens switching
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → AnimatedTextState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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}) → 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