BartBottomBar.material constructor
BartBottomBar.material({
- bool enableHapticFeedback = true,
- int index = 0,
- Color? bgColor,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- double? height,
- BottomNavigationBarType? type,
- IconThemeData? iconThemeData,
- double selectedFontSize = 14.0,
- double unselectedFontSize = 12.0,
- double iconSize = 24,
- double? elevation,
Implementation
factory BartBottomBar.material({
bool enableHapticFeedback = true,
int index = 0,
Color? bgColor,
Color? selectedItemColor,
Color? unselectedItemColor,
double? height,
BottomNavigationBarType? type,
IconThemeData? iconThemeData,
double selectedFontSize = 14.0,
double unselectedFontSize = 12.0,
double iconSize = 24,
double? elevation,
}) =>
BartBottomBar._(
enableHapticFeedback: enableHapticFeedback,
bottomBarTheme: Material2BottomBarTheme().copyWith(
bgColor: bgColor,
selectedItemColor: selectedItemColor,
unselectedItemColor: unselectedItemColor,
type: type,
iconThemeData: iconThemeData,
elevation: elevation,
height: height,
iconSize: iconSize,
selectedFontSize: selectedFontSize,
unselectedFontSize: unselectedFontSize,
),
theme: Theme.material,
currentIndex: index,
);