CircularBottomNavigation constructor

CircularBottomNavigation(
  1. List<TabItem> tabItems, {
  2. int selectedPos = 0,
  3. double barHeight = 60,
  4. dynamic barBackgroundColor,
  5. Gradient? barBackgroundGradient,
  6. double circleSize = 58,
  7. double circleStrokeWidth = 4,
  8. double iconsSize = 32,
  9. Color selectedIconColor = Colors.white,
  10. Color normalIconColor = Colors.grey,
  11. Duration animationDuration = const Duration(milliseconds: 300),
  12. CircularBottomNavSelectedCallback? selectedCallback,
  13. CircularBottomNavigationController? controller,
  14. bool allowSelectedIconCallback = false,
  15. dynamic backgroundBoxShadow,
})

Implementation

CircularBottomNavigation(
  this.tabItems, {
  this.selectedPos = 0,
  this.barHeight = 60,
  barBackgroundColor,
  this.barBackgroundGradient,
  this.circleSize = 58,
  this.circleStrokeWidth = 4,
  this.iconsSize = 32,
  this.selectedIconColor = Colors.white,
  this.normalIconColor = Colors.grey,
  this.animationDuration = const Duration(milliseconds: 300),
  this.selectedCallback,
  this.controller,
  this.allowSelectedIconCallback = false,
  backgroundBoxShadow,
})  : backgroundBoxShadow = backgroundBoxShadow ??
          [BoxShadow(color: Colors.grey, blurRadius: 2.0)],
      barBackgroundColor =
          (barBackgroundGradient == null && barBackgroundColor == null)
              ? Colors.white
              : barBackgroundColor,
      assert(barBackgroundColor == null || barBackgroundGradient == null,
          "Both barBackgroundColor and barBackgroundGradient can't be not null."),
      assert(tabItems.length != 0, "tabItems is required");