FloatingBottomNavigationBar constructor
const
FloatingBottomNavigationBar({
- Key? key,
- NavigationBarStyle style = NavigationBarStyle.classic,
- double? height = 90,
- required List<
Widget> pages, - required ValueNotifier<
int> currentPage, - List<
Color> ? color, - Color? backgroundColor,
- List<
String> ? labels, - List<
IconData> ? icons, - bool withAppBar = true,
- List<
IconData> ? selectedIcons, - String fontFamily = 'Roboto',
- FontWeight? fontWeight,
Creates a FloatingBottomNavigationBar widget.
The pages
and currentPage
parameters are required.
Implementation
const FloatingBottomNavigationBar({
super.key,
this.style = NavigationBarStyle.classic,
this.height = 90,
required this.pages,
required this.currentPage,
this.color,
this.backgroundColor,
this.labels,
this.icons,
this.withAppBar = true,
this.selectedIcons,
this.fontFamily = 'Roboto',
this.fontWeight,
}) : assert(pages.length > 1 &&
(style == NavigationBarStyle.classic
? icons != null && labels != null
: (style == NavigationBarStyle.icons
? icons != null
: (style == NavigationBarStyle.texts
? labels != null
: false))));