AnimatedBottomNavigationBar constructor
AnimatedBottomNavigationBar({
- Key? key,
- double elevation = 3,
- int height = 75,
- Color? backGroundColor,
- Color shadowColor = Colors.black12,
- dynamic inactiveColor,
- required List<
AnimatedNavBarItem> items, - required OnItemSelected onItemSelected,
- int currentIndex = 0,
Implementation
AnimatedBottomNavigationBar({
Key? key,
this.elevation = 3,
this.height = 75,
this.backGroundColor,
this.shadowColor = Colors.black12,
inactiveColor,
required this.items,
required this.onItemSelected,
this.currentIndex = 0,
}) : inactiveColor = Colors.grey[400]!,
assert(
height <= 100,
"Height can't be greater 100",
),
assert(
items.isNotEmpty,
"Items inside AnimatedBottomNavigationBar can't be empty",
),
assert(
items.length > 1,
"Items length must be > 1 for AnimatedBottomNavigationBar",
),
assert(
items.toSet().length == items.length,
"Navigation bar can't have duplicate items",
),
super(key: key);