AnimatedBottomNavigationBar.builder constructor

AnimatedBottomNavigationBar.builder({
  1. Key? key,
  2. required int itemCount,
  3. required IndexedWidgetBuilder tabBuilder,
  4. required int activeIndex,
  5. required dynamic onTap(
    1. int
    ),
  6. double? height,
  7. double? elevation,
  8. double? splashRadius,
  9. int? splashSpeedInMilliseconds,
  10. double? notchMargin,
  11. Color? backgroundColor,
  12. Color? splashColor,
  13. Animation<double>? notchAndCornersAnimation,
  14. double? leftCornerRadius,
  15. double? rightCornerRadius,
  16. NotchSmoothness? notchSmoothness,
  17. GapLocation? gapLocation,
  18. double? gapWidth,
  19. bool safeAreaLeft = true,
  20. bool safeAreaTop = true,
  21. bool safeAreaRight = true,
  22. 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,
      );