BottomBar constructor
const
BottomBar({
- Key? key,
- required int selectedIndex,
- Curve curve = Curves.easeOutQuint,
- Duration duration = const Duration(milliseconds: 750),
- num? height,
- EdgeInsets padding = const EdgeInsets.all(10),
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
- Color? backgroundColor,
- bool showActiveBackgroundColor = true,
- ShapeBorder border = const StadiumBorder(),
- EdgeInsets itemPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
- required List<
BottomBarItem> items, - required ValueChanged<
int> onTap, - TextStyle textStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
Creates a BottomBar
that displays a list of BottomBarItem
Animations will play once a BottomBarItem
is clicked
Implementation
const BottomBar({
Key? key,
required this.selectedIndex,
this.curve = Curves.easeOutQuint,
this.duration = const Duration(milliseconds: 750),
this.height,
this.padding = const EdgeInsets.all(10),
this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
this.backgroundColor,
this.showActiveBackgroundColor = true,
this.border = const StadiumBorder(),
this.itemPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
required this.items,
required this.onTap,
this.textStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
}) : super(key: key);