AnimatedBottomNavigationBar.builder constructor
AnimatedBottomNavigationBar.builder({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder tabBuilder,
- required int activeIndex,
- required dynamic onTap(),
- 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,
Implementation
AnimatedBottomNavigationBar.builder({
Key? key,
required int itemCount,
required IndexedWidgetBuilder tabBuilder,
required int activeIndex,
required Function(int) onTap,
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,
}) : this._internal(
key: key,
tabBuilder: tabBuilder,
itemCount: itemCount,
activeIndex: activeIndex,
onTap: onTap,
height: height,
splashRadius: splashRadius ?? _defaultSplashRadius,
splashSpeedInMilliseconds: splashSpeedInMilliseconds,
notchMargin: notchMargin,
backgroundColor: backgroundColor,
splashColor: splashColor,
notchAndCornersAnimation: notchAndCornersAnimation,
leftCornerRadius: leftCornerRadius ?? 0,
rightCornerRadius: rightCornerRadius ?? 0,
notchSmoothness: notchSmoothness,
gapLocation: gapLocation ?? GapLocation.end,
gapWidth: gapWidth,
elevation: elevation,
shadow: shadow,
borderColor: borderColor,
borderWidth: borderWidth,
safeAreaValues: safeAreaValues,
hideAnimationCurve: hideAnimationCurve,
hideAnimationController: hideAnimationController,
backgroundGradient: backgroundGradient,
blurEffect: blurEffect,
blurFilter: imageFilter,
scaleFactor: scaleFactor,
);