BaseBottomBar constructor

const BaseBottomBar({
  1. Key? key,
  2. double height = kBottomNavigationBarHeight,
  3. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceAround,
  4. double mainAxisSpacing = 0.0,
  5. double crossAxisSpacing = 4.0,
  6. required List<BottomNavigationBarItem> items,
  7. int currentIndex = 0,
  8. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  9. Color? selectedItemColor,
  10. Color? unselectedItemColor,
  11. TextStyle? selectedLabelStyle,
  12. TextStyle? unselectedLabelStyle,
  13. Color? backgroundColor = Colors.white,
  14. bool ignoreSafeArea = false,
  15. List<BoxShadow>? boxShadow = const [BoxShadow(color: Color(0x08000000), offset: Offset(0, -4), blurRadius: 8)],
  16. 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});