AnimatedTextBar class

A widget that's used either at the bottom of an app in the Scaffold's Scaffold.bottomNavigationBar argument or at the top of an app as a TabBar by wrapping with PreferredSize in the Scaffold's Scaffold.appBar or AppBar's AppBar.bottom argument for selecting among a small number of views, typically between three and five.

Inheritance

Constructors

AnimatedTextBar({Key? key, required List<BarItem> items, ValueChanged<int>? onTap, int currentIndex = 0, double? elevation, Color? backgroundColor, Color? shadowColor, Duration animatedTextDuration = const Duration(milliseconds: 250), Curve animatedTextCurve = Curves.easeInOut, TextStyle? selectedLabelStyle, TextStyle? unselectedLabelStyle, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, BorderRadiusGeometry? borderRadius, TextPosition textPosition = TextPosition.RIGHT, Color? selectedItemColor, Color? unselectedItemColor, BorderRadiusGeometry? selectedItemBorderRadius, double selectedFontSize = 14.0, double unselectedFontSize = 12.0})
Creates a animated text bar which is typically used as a Scaffold's Scaffold.bottomNavigationBar argument.

Properties

animatedTextCurve Curve
The curve of animation of the label BarItem.label.
final
animatedTextDuration Duration
The duration of animation of the label BarItem.label.
final
backgroundColor Color?
The color of the AnimatedTextBar itself.
final
borderRadius BorderRadiusGeometry?
The border radius of the AnimatedTextBar itself.
final
currentIndex int
The index into items for the current active BarItem.
final
elevation double?
The z-coordinate of this BottomNavigationBar.
final
hashCode int
The hash code for this object.
no setterinherited
items List<BarItem>
Defines the appearance of the button items that are arrayed within the animated text bar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
The margin of the AnimatedTextBar itself from the screen.
final
onTap ValueChanged<int>?
Called when one of the items is tapped.
final
padding EdgeInsetsGeometry?
The padding of the items from AnimatedTextBar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedFontSize double
The font size of the BarItem labels when they are selected.
final
selectedItemBorderRadius BorderRadiusGeometry?
The border radius of the selected BarItem.
final
selectedItemColor Color?
The color of the selected BarItem.iconData or BarItem.images.
final
selectedLabelStyle TextStyle?
The TextStyle of the BarItem labels when they are selected.
final
shadowColor Color?
The shadow color of the AnimatedTextBar itself.
final
textPosition TextPosition
The position of animated text (label BarItem.label).
final
unselectedFontSize double
The font size of the nBarItem labels when they are not selected.
final
unselectedItemColor Color?
The color of the unselected BarItem.iconData or BarItem.images.
final
unselectedLabelStyle TextStyle?
The TextStyle of the BarItem labels when they are not selected.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _AnimatedTextBarState
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