AnimatedBottomNavigationBar class

Inheritance

Constructors

AnimatedBottomNavigationBar({Key? key, required List<IconData> icons, required int activeIndex, required dynamic onTap(int), double? height, 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, double? elevation, Shadow? shadow, Color? borderColor, double? borderWidth, SafeAreaValues safeAreaValues = const SafeAreaValues(), Curve? hideAnimationCurve, AnimationController? hideAnimationController, Gradient? backgroundGradient, ImageFilter? imageFilter, bool blurEffect = false, double scaleFactor = 1.0})
AnimatedBottomNavigationBar.builder({Key? key, required int itemCount, required IndexedWidgetBuilder tabBuilder, required int activeIndex, required dynamic onTap(int), double? height, double? splashRadius, int? splashSpeedInMilliseconds, double? notchMargin, Color? backgroundColor, Color? splashColor, Animation<double>? notchAndCornersAnimation, double? leftCornerRadius, double? rightCornerRadius, NotchSmoothness? notchSmoothness, GapLocation? gapLocation, double? gapWidth, double? elevation, Shadow? shadow, Color? borderColor, double? borderWidth, SafeAreaValues safeAreaValues = const SafeAreaValues(), Curve? hideAnimationCurve, AnimationController? hideAnimationController, Gradient? backgroundGradient, bool blurEffect = false, ImageFilter? imageFilter, double scaleFactor = 1.0})

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
backgroundGradient Gradient?
Optional background gradient.
final
blurEffect bool
Whether blur effect should be applied.
final
blurFilter ImageFilter?
Filter to apply blurring effect.
final
borderColor Color?
Optional custom border color around the navigation bar. Default is Colors.transparent.
final
borderWidth double?
Optional custom border width around the navigation bar. Default is 2.0.
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
hideAnimationController AnimationController?
Optional hide bottom bar animation controller
final
hideAnimationCurve Curve?
The Curve that the hide animation will follow. Defaults to Curves.fastOutSlowIn,
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
safeAreaValues SafeAreaValues
Specifies whether to avoid system intrusions for specific sides
final
scaleFactor double
Optional scale effect factor. Default is 1.
final
shadow Shadow?
Optional custom shadow around the navigation 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