FloatingBottomNavigationBar constructor
const
FloatingBottomNavigationBar({})
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,
}) : assert(pages.length > 1 &&
(style == NavigationBarStyle.classic
? icons != null && labels != null
: (style == NavigationBarStyle.icons
? icons != null
: (style == NavigationBarStyle.texts
? labels != null
: false))));