BaseBottomBar constructor
const
BaseBottomBar({
- Key? key,
- double height = kBottomNavigationBarHeight,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceAround,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 4.0,
- required List<
BottomNavigationBarItem> items, - int currentIndex = 0,
- BorderRadiusGeometry borderRadius = BorderRadius.zero,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- TextStyle? selectedLabelStyle,
- TextStyle? unselectedLabelStyle,
- Color? backgroundColor = Colors.white,
- bool ignoreSafeArea = false,
- List<
BoxShadow> ? boxShadow = const [BoxShadow(color: Color(0x08000000), offset: Offset(0, -4), blurRadius: 8)], - ValueChanged<
int> ? onPressed,
Implementation
const BaseBottomBar(
{super.key,
this.height = kBottomNavigationBarHeight,
this.mainAxisAlignment = MainAxisAlignment.spaceAround,
this.mainAxisSpacing = 0.0,
this.crossAxisSpacing = 4.0,
required this.items,
this.currentIndex = 0,
this.borderRadius = BorderRadius.zero,
this.selectedItemColor,
this.unselectedItemColor,
this.selectedLabelStyle,
this.unselectedLabelStyle,
this.backgroundColor = Colors.white,
this.ignoreSafeArea = false,
this.boxShadow = const [
BoxShadow(
color: Color(0x08000000),
offset: Offset(0, -4),
blurRadius: 8,
),
],
this.onPressed});