NavBottomBar constructor
NavBottomBar({
- Key? key,
- List<
BottomNavigationBarItem> ? items, - ValueChanged<
int> ? onTap, - int? currentIndex = 0,
- double? elevation = 8.0,
- BottomNavigationBarType? type,
- Color? fixedColor,
- Color? backgroundColor,
- double? iconSize = 24.0,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- IconThemeData? selectedIconTheme = const IconThemeData(),
- IconThemeData? unselectedIconTheme = const IconThemeData(),
- double? selectedFontSize = 14.0,
- double? unselectedFontSize = 12.0,
- TextStyle? selectedLabelStyle,
- TextStyle? unselectedLabelStyle,
- bool? showSelectedLabels = true,
- bool? showUnselectedLabels,
- bool? hide = false,
Optionally supply all the BottomNavigationBar properties when instantiating.
Implementation
NavBottomBar({
this.key,
this.items,
this.onTap,
this.currentIndex = 0,
this.elevation = 8.0,
this.type,
this.fixedColor,
this.backgroundColor,
this.iconSize = 24.0,
this.selectedItemColor,
this.unselectedItemColor,
this.selectedIconTheme = const IconThemeData(),
this.unselectedIconTheme = const IconThemeData(),
this.selectedFontSize = 14.0,
this.unselectedFontSize = 12.0,
this.selectedLabelStyle,
this.unselectedLabelStyle,
this.showSelectedLabels = true,
this.showUnselectedLabels,
this.hide = false,
});