AnimatedBottomNavigationBar.builder constructor
AnimatedBottomNavigationBar.builder({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder tabBuilder,
- required int activeIndex,
- required dynamic onTap(),
- 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,
Implementation
AnimatedBottomNavigationBar.builder({
Key? key,
required int itemCount,
required IndexedWidgetBuilder tabBuilder,
required int activeIndex,
required Function(int) onTap,
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,
}) : this._internal(
key: key,
tabBuilder: tabBuilder,
itemCount: itemCount,
activeIndex: activeIndex,
onTap: onTap,
height: height,
elevation: elevation,
splashRadius: splashRadius ?? 24,
splashSpeedInMilliseconds: splashSpeedInMilliseconds,
notchMargin: notchMargin,
backgroundColor: backgroundColor,
splashColor: splashColor,
notchAndCornersAnimation: notchAndCornersAnimation,
leftCornerRadius: leftCornerRadius ?? 0,
rightCornerRadius: rightCornerRadius ?? 0,
notchSmoothness: notchSmoothness,
gapLocation: gapLocation ?? GapLocation.end,
gapWidth: gapWidth,
safeAreaLeft: safeAreaLeft,
safeAreaTop: safeAreaTop,
safeAreaRight: safeAreaRight,
safeAreaBottom: safeAreaBottom,
);