EaseNavBar constructor
EaseNavBar({
- Key? key,
- int selectedIndex = 0,
- double height = 60,
- bool showElevation = true,
- double iconSize = 20,
- Color? backgroundColor,
- Duration animationDuration = const Duration(milliseconds: 170),
- Curve animationCurve = Curves.linear,
- List<
BoxShadow> shadows = const [BoxShadow(color: Colors.black12, blurRadius: 3)], - required List<
EaseNavBarItem> items, - required ValueChanged<
int> onItemSelected, - bool floating = true,
Implementation
EaseNavBar({
Key? key,
this.selectedIndex = 0,
this.height = 60,
this.showElevation = true,
this.iconSize = 20,
this.backgroundColor,
this.animationDuration = const Duration(milliseconds: 170),
this.animationCurve = Curves.linear,
this.shadows = const [
BoxShadow(
color: Colors.black12,
blurRadius: 3,
),
],
required this.items,
required this.onItemSelected,
this.floating = true,
}) : super(key: key) {
assert(height >= 55 && height <= 100);
assert(items.length >= 2 && items.length <= 5);
}