CustomNavigationBar constructor
const
CustomNavigationBar({})
Creates a CustomNavigationBar widget.
The pages
and currentIndex
parameters are required.
Implementation
const CustomNavigationBar({
super.key,
this.style = NavigationBarStyle.classic,
required this.pages,
this.icons,
this.labels,
this.selectedColors,
required this.currentIndex,
this.unselectedColors,
this.backgroundColor,
this.selectedIcons,
}) : assert(pages.length > 1 &&
(style == NavigationBarStyle.classic
? icons != null && labels != null
: (style == NavigationBarStyle.icons
? icons != null
: (style == NavigationBarStyle.texts
? labels != null
: (style == NavigationBarStyle.images
? selectedColors != null &&
unselectedColors != null &&
icons != null &&
labels != null
: false)))));