AdaptiveNavBar constructor
AdaptiveNavBar({
- Key? key,
- required List<
NavItem> items, - double height = 65.0,
- double iconSize = 24.0,
- double selectedFontSize = 14.0,
- double unselectedFontSize = 12.0,
- bool showLabels = true,
- bool showSelectedLabels = true,
- bool showUnselectedLabels = true,
- Color? backgroundColor,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- NotchedShape? notchedShape,
- double elevation = 8.0,
- BorderRadius? borderRadius,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
AdaptiveNavBar({
Key? key,
required this.items,
this.height = 65.0,
this.iconSize = 24.0,
this.selectedFontSize = 14.0,
this.unselectedFontSize = 12.0,
this.showLabels = true,
this.showSelectedLabels = true,
this.showUnselectedLabels = true,
this.backgroundColor,
this.selectedItemColor,
this.unselectedItemColor,
this.notchedShape,
this.elevation = 8.0,
this.borderRadius,
this.animationDuration = const Duration(milliseconds: 300),
this.animationCurve = Curves.easeOutCubic,
}) : controller = Get.put(NavigationController()),
assert(items.length >= 2, 'At least 2 items are required'),
assert(items.length <= 5, 'Maximum 5 items are allowed'),
super(key: key);