CustomAnimatedBottomBar constructor
const
CustomAnimatedBottomBar({
- Key? key,
- int selectedIndex = 0,
- bool showElevation = true,
- double iconSize = 24,
- Color? backgroundColor = Colors.white,
- double itemCornerRadius = 28,
- double containerHeight = 48,
- Duration animationDuration = const Duration(milliseconds: 200),
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
- required List<
MyBottomNavigationBarItem> items, - required ValueChanged<
int> onItemSelected, - Curve curve = Curves.easeInOut,
Implementation
const CustomAnimatedBottomBar({
Key? key,
this.selectedIndex = 0,
this.showElevation = true,
this.iconSize = 24,
this.backgroundColor = Colors.white,
this.itemCornerRadius = 28,
this.containerHeight = 48,
this.animationDuration = const Duration(milliseconds: 200),
this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
required this.items,
required this.onItemSelected,
this.curve = Curves.easeInOut,
}):assert(items.length >= 2 && items.length <= 5),
super(key: key);