BartBottomBar.fromFactory constructor
BartBottomBar.fromFactory({
- required BartBottomBarFactory bottomBarFactory,
- double? elevation,
- Color? bgColor,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- BottomNavigationBarType? type,
- IconThemeData? iconThemeData,
- double selectedFontSize = 14.0,
- double unselectedFontSize = 12.0,
- double iconSize = 24,
- int index = 0,
Implementation
factory BartBottomBar.fromFactory(
{required BartBottomBarFactory bottomBarFactory,
double? elevation,
Color? bgColor,
Color? selectedItemColor,
Color? unselectedItemColor,
BottomNavigationBarType? type,
IconThemeData? iconThemeData,
double selectedFontSize = 14.0,
double unselectedFontSize = 12.0,
double iconSize = 24,
int index = 0}) =>
BartBottomBar._(
bottomBarFactory: bottomBarFactory,
elevation: elevation,
bgColor: bgColor,
selectedItemColor: selectedItemColor,
unselectedItemColor: unselectedItemColor,
type: type,
iconThemeData: iconThemeData,
selectedFontSize: selectedFontSize,
unselectedFontSize: unselectedFontSize,
iconSize: iconSize,
currentIndex: ValueNotifier(index),
);