AnimatedBottomNavigationBar class

Inheritance

Constructors

AnimatedBottomNavigationBar({Key? key, required List<IconData> icons, required int activeIndex, required dynamic onTap(int), double? height, double? elevation, double? splashRadius, int? splashSpeedInMilliseconds, double? notchMargin, Color? backgroundColor, Color? splashColor, Color? activeColor, Color? inactiveColor, Animation<double>? notchAndCornersAnimation, double? leftCornerRadius, double? rightCornerRadius, double? iconSize, NotchSmoothness? notchSmoothness, GapLocation? gapLocation, double? gapWidth, bool safeAreaLeft = true, bool safeAreaTop = true, bool safeAreaRight = true, bool safeAreaBottom = true})
AnimatedBottomNavigationBar.builder({Key? key, required int itemCount, required IndexedWidgetBuilder tabBuilder, required int activeIndex, required dynamic onTap(int), double? height, double? elevation, double? splashRadius, int? splashSpeedInMilliseconds, double? notchMargin, Color? backgroundColor, Color? splashColor, Animation<double>? notchAndCornersAnimation, double? leftCornerRadius, double? rightCornerRadius, NotchSmoothness? notchSmoothness, GapLocation? gapLocation, double? gapWidth, bool safeAreaLeft = true, bool safeAreaTop = true, bool safeAreaRight = true, bool safeAreaBottom = true})

Properties

activeColor Color?
Optional custom currently selected tab bar IconData color. Default is Colors.deepPurpleAccent
final
activeIndex int
Current index of selected tab bar item.
final
backgroundColor Color?
Optional custom tab bar background color. Default is Colors.white.
final
elevation double?
Optional custom tab bar elevation. Default is 8.
final
gapLocation GapLocation?
Location of the free space between tab bar items for notch. Must have the same location if FloatingActionButtonLocation.centerDocked or FloatingActionButtonLocation.endDocked. Default is GapLocation.end.
final
gapWidth double?
Free space width between tab bar items. The preferred width is equal to total width of FloatingActionButton and double notchMargin. Default is 72.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Optional custom tab bar height. Default is 56.
final
icons List<IconData>?
Icon data to render in the tab bar.
final
iconSize double?
Optional custom size for each tab bar icon. Default is 24.
final
inactiveColor Color?
Optional custom currently unselected tab bar IconData color. Default is Colors.black
final
itemCount int?
Total item count.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftCornerRadius double?
Optional custom tab bar top-left corner radius. Default is 0.
final
notchAndCornersAnimation Animation<double>?
Optional custom Animation to animate corners and notch appearing.
final
notchMargin double?
Optional custom notch margin for Floating. Default is 8.
final
notchSmoothness NotchSmoothness?
Optional custom type of notch. Default is NotchSmoothness.defaultEdge.
final
onTap → dynamic Function(int)
Handler which is passed every updated active index.
final
rightCornerRadius double?
Optional custom tab bar top-right corner radius. Useless with GapLocation.end. Default is 0.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeAreaBottom bool
Whether to avoid system intrusions on the bottom side of the screen.
final
safeAreaLeft bool
Whether to avoid system intrusions on the left.
final
safeAreaRight bool
Whether to avoid system intrusions on the right.
final
safeAreaTop bool
Whether to avoid system intrusions at the top of the screen, typically the system status bar.
final
splashColor Color?
Optional custom splash selection animation color. Default is Colors.purple.
final
splashRadius double
Optional custom maximum spread radius for splash selection animation. Default is 24.
final
splashSpeedInMilliseconds int?
Optional custom splash selection animation speed. Default is 300 milliseconds.
final
tabBuilder IndexedWidgetBuilder?
Widgets to render in the tab bar.
final

Methods

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