BottomNavPage constructor
const
BottomNavPage({
- Key? key,
- required List<
TabItem> tabs, - required List<
Widget> pages, - int index = 0,
- ValueChanged<
int> ? onTap, - PreferredSizeWidget? appBar,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- Widget? drawer,
- DrawerCallback? onDrawerChanged,
- BottomNavigationBarThemeData? data,
Implementation
const BottomNavPage(
{Key? key,
required this.tabs,
required this.pages,
int index = 0,
this.onTap,
this.appBar,
this.floatingActionButton,
this.floatingActionButtonLocation,
this.drawer,
this.onDrawerChanged,
BottomNavigationBarThemeData? data})
: assert(tabs.length == pages.length),
assert(tabs.length >= 2 && pages.length >= 2),
assert(index < tabs.length && index >= 0),
themeData = data ??
const BottomNavigationBarThemeData(
showSelectedLabels: true,
showUnselectedLabels: true,
selectedLabelStyle: TextStyle(fontSize: 12),
unselectedLabelStyle: TextStyle(fontSize: 12),
type: BottomNavigationBarType.fixed,
elevation: 5),
currentIndex = index,
super(key: key);