FxCurvedNavigationBar constructor
FxCurvedNavigationBar({
- Key? key,
- required List<
Widget> items, - int index = 0,
- Color color = Colors.white,
- Color? buttonBackgroundColor,
- Color backgroundColor = Colors.blueAccent,
- ValueChanged<
int> ? onTap, - _LetIndexPage? letIndexChange,
- Curve animationCurve = Curves.easeOut,
- Duration animationDuration = const Duration(milliseconds: 600),
- double height = 75.0,
Implementation
FxCurvedNavigationBar({
Key? key,
required this.items,
this.index = 0,
this.color = Colors.white,
this.buttonBackgroundColor,
this.backgroundColor = Colors.blueAccent,
this.onTap,
_LetIndexPage? letIndexChange,
this.animationCurve = Curves.easeOut,
this.animationDuration = const Duration(milliseconds: 600),
this.height = 75.0,
}) : letIndexChange = letIndexChange ?? ((_) => true),
assert(items.length >= 1),
assert(0 <= index && index < items.length),
assert(0 <= height && height <= 75.0),
super(key: key);