BottomBar constructor

const BottomBar({
  1. Key? key,
  2. required int selectedIndex,
  3. Curve curve = Curves.easeOutQuint,
  4. Duration duration = const Duration(milliseconds: 750),
  5. num? height,
  6. Color? backgroundColor,
  7. bool showActiveBackgroundColor = true,
  8. EdgeInsets itemPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
  9. required List<GetBottomBarItem> items,
  10. required ValueChanged<int> onTap,
  11. TextStyle textStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
})

Creates a BottomBar that displays a list of BottomBarItem along with added animations whenever 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.backgroundColor,
  this.showActiveBackgroundColor = true,
  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);