BottomNavBar constructor
const
BottomNavBar({
- Key? key,
- required int currentIndex,
- required List<
TabItem> tabs, - BottomNavigationBarThemeData? data,
- ValueChanged<
int> ? onTap,
Implementation
const BottomNavBar(
{Key? key,
required this.currentIndex,
required this.tabs,
BottomNavigationBarThemeData? data,
this.onTap})
: assert(currentIndex < tabs.length && currentIndex >= 0),
themeData = data ??
const BottomNavigationBarThemeData(
showSelectedLabels: true,
showUnselectedLabels: true,
selectedLabelStyle: TextStyle(fontSize: 12),
unselectedLabelStyle: TextStyle(fontSize: 12),
type: BottomNavigationBarType.fixed,
elevation: 5),
super(key: key);