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