CircularBottomNavigation constructor
CircularBottomNavigation(
- List<
TabItem> tabItems, { - int selectedPos = 0,
- double barHeight = 60,
- dynamic barBackgroundColor,
- Gradient? barBackgroundGradient,
- double circleSize = 58,
- double circleStrokeWidth = 4,
- double iconsSize = 32,
- Color selectedIconColor = Colors.white,
- Color normalIconColor = Colors.grey,
- Duration animationDuration = const Duration(milliseconds: 300),
- CircularBottomNavSelectedCallback? selectedCallback,
- CircularBottomNavigationController? controller,
- bool allowSelectedIconCallback = false,
- 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");