CustomBottomIndicatorBar class

Inheritance

Constructors

CustomBottomIndicatorBar({Key? key, required ValueChanged<int> onTap, required List<BottomNavigationBarItem> items, Color? activeColor, Color? inactiveColor, Color? indicatorColor, Color? shadowColor, Color? backgroundColor, bool shadow = false, int currentIndex = 0, TextStyle? selectedLabelStyle, TextStyle? unselectedLabelStyle, IconThemeData? unselectedIconTheme, IconThemeData? selectedIconTheme, int animationDuration = 180, bool? showSelectedLabels, bool? showUnselectedLabels, double? elevation})

Properties

activeColor Color?
The value of activeColor. If null BottomNavigationBarThemeData.selectedItemColor is used. If BottomNavigationBarThemeData.selectedItemColor is null, then ThemeData.indicatorColor is used.
final
animationDuration int
Animation duration for indicator to move from one position to another.
final
backgroundColor Color?
The value of backgroundColor. If null BottomNavigationBarThemeData.backgroundColor is used. If BottomNavigationBarThemeData.backgroundColor is null, then ThemeData.bottomAppBarColor is used.
final
currentIndex int
Starting index when the widget is rendered.
final
elevation double?
The z-coordinate of this CustomBottomIndicatorBar. If null BottomNavigationBarThemeData.elevation is used. If BottomNavigationBarThemeData.elevation is null, defaults to 8.0.
final
hashCode int
The hash code for this object.
no setterinherited
inactiveColor Color?
The value of inactiveColor. If null BottomNavigationBarThemeData.unselectedItemColor is used. If BottomNavigationBarThemeData.unselectedItemColor is null, then ThemeData.unselectedWidgetColor is used.
final
indicatorColor Color?
The value of indicatorColor. If null BottomNavigationBarThemeData.selectedItemColor is used. If BottomNavigationBarThemeData.unselectedItemColor is null, then ThemeData.indicatorColor is used.
final
items List<BottomNavigationBarItem>
Creates a bottom navigation bar with a indicator on top of the selected ' widget which is typically used as a Scaffold's Scaffold.bottomNavigationBar argument.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap ValueChanged<int>
Called when one of the items is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIconTheme IconThemeData?
The size, opacity, and color of the icon in the currently unselected BottomNavigationBarItem.icons.
final
selectedLabelStyle TextStyle?
The TextStyle of the BottomNavigationBarItem labels when they are selected.
final
shadow bool
Boolean value whether to show or hide the shadow.
final
shadowColor Color?
The value of shadowColor. If null, ThemeData.shadowColor is used.
final
showSelectedLabels bool?
Whether the labels are shown for the unselected BottomNavigationBarItems.
final
showUnselectedLabels bool?
Whether the labels are shown for the selected BottomNavigationBarItem.
final
unselectedIconTheme IconThemeData?
The size, opacity, and color of the icon in the currently unselected BottomNavigationBarItem.icons.
final
unselectedLabelStyle TextStyle?
The TextStyle of the BottomNavigationBarItem labels when they aren't selected.
final

Methods

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