FlipFraseBoard class

Component to present a frase, shown as an mechanical flip board.

Displays an animation flipping from each start letter upto each letter in the endFrase, letter streams flip in different random speeds, controlled by given parameters.

Inheritance

Constructors

FlipFraseBoard({Key? key, required FlipType flipType, required Axis axis, String? startFrase, String? startLetter, required String endFrase, List<Color>? letterColors, List<Color>? startColors, List<Color>? endColors, required double fontSize, double? flipLetterWidth, double? flipLetterHeight, bool? showBorder, double? borderWidth, Color? borderColor, double hingeWidth = 0.0, double? hingeLength, Color? hingeColor, double letterSpacing = 1.0, int minFlipDelay = 250, int maxFlipDelay = 600, VoidCallback? onDone, ValueNotifier<int>? startNotifier})
FlipFraseBoard constructor.

Properties

axis Axis
Flip animation axis.
final
borderColor Color?
Letter panel border color.
final
borderWidth double?
Letter panel border width.
final
endColors List<Color>?
Optional list of colors for the panel background when animation finishes.
final
flipLetterHeight double
Letter panel height.
final
flipLetterWidth double
Letter panel width.
final
flipType FlipType
Defines the type of animation.
final
fontSize double
Font size of board letters.
final
hashCode int
The hash code for this object.
no setterinherited
hingeColor Color?
Color of the middle hinge element.
final
hingeLength double
Length of the middle hinge element.
final
hingeWidth double
Width of the middle hinge element.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
letterColors List<Color>?
Optional list of colors for letters.
final
letterSpacing double
Spacing between letters.
final
maxFlipDelay int
Max flip delay for the generate random delay.
final
minFlipDelay int
Minimum flip delay for the generate random delay.
final
onDone VoidCallback?
Optional callback for the whole frase animation completion.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBorder bool?
Flag to define if there will be a border for each digit panel.
final
startColors List<Color>?
Optional list of colors for the panel background when animation starts.
final
startNotifier ValueNotifier<int>
Optional parameter for a ValueNotifier to signal a restart of the whole animation.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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