M3NavbarDecoration constructor
M3NavbarDecoration({
- Color? backgroundColor,
- NavigationDestinationLabelBehavior labelBehavior = NavigationDestinationLabelBehavior.alwaysShow,
- Color? indicatorColor,
- TextStyle? labelTextStyle,
- double? elevation,
- double? height,
- IconThemeData? iconTheme,
- ShapeBorder? indicatorShape,
- bool? isExtended,
Implementation
M3NavbarDecoration({
/// The backgroundColor of the Navbar
Color? backgroundColor,
/// Defines whether to show/hide labels
NavigationDestinationLabelBehavior labelBehavior =
NavigationDestinationLabelBehavior.alwaysShow,
/// Color for the indicator shown around the seleccted item
Color? indicatorColor,
/// Textstyle of the labels
TextStyle? labelTextStyle,
/// The elevation shadown on the edges of bottomnavigationbar
double? elevation,
/// height of the navbar
final double? height,
/// iconTheme for the icons
IconThemeData? iconTheme,
ShapeBorder? indicatorShape,
bool? isExtended,
}) : super(
backgroundColor: backgroundColor,
elevation: elevation,
indicatorColor: indicatorColor,
labelBehavior: labelBehavior,
selectedLabelTextStyle: labelTextStyle,
unselectedLabelTextStyle: labelTextStyle,
indicatorShape: indicatorShape,
selectedIconTheme: iconTheme,
isExtended: isExtended ?? false,
height: height ?? 80.0);