BartBottomBar.adaptive constructor
BartBottomBar.adaptive({
- Material3BottomBarTheme? materialBottomBarTheme,
- CupertinoBottomBarTheme? cupertinoBottomBarTheme,
- bool enableHapticFeedback = true,
- int index = 0,
Implementation
factory BartBottomBar.adaptive({
Material3BottomBarTheme? materialBottomBarTheme,
CupertinoBottomBarTheme? cupertinoBottomBarTheme,
bool enableHapticFeedback = true,
int index = 0,
}) =>
BartBottomBar._(
bottomBarTheme: Platform.isIOS
? cupertinoBottomBarTheme ?? CupertinoBottomBarTheme()
: materialBottomBarTheme ?? Material3BottomBarTheme(),
enableHapticFeedback: enableHapticFeedback,
theme: Platform.isIOS ? Theme.cupertino : Theme.material3,
currentIndex: index,
);