IDSBottomNavigationAppBar constructor

const IDSBottomNavigationAppBar({
  1. required List<IDSBottomNavBarItem> items,
  2. String? centerItemText,
  3. double height = 70.0,
  4. double iconSize = 20.0,
  5. double iconTextSpace = 10.0,
  6. Color? backgroundColor,
  7. Color? inActiveColor,
  8. Color? activeColor,
  9. NotchedShape? notchedShape,
  10. ValueChanged<int>? onTabSelected,
  11. bool centerSelected = false,
  12. bool enableMiddleTabItem = true,
  13. bool enableTopShadow = true,
  14. double blurRadius = 2.0,
  15. double spreadRadius = 0.2,
  16. double offset = -2,
  17. Color? shadowColor = Colors.black12,
  18. Key? key,
})

IDSBottomNavigationAppBar

Implementation

const IDSBottomNavigationAppBar({
  required this.items,
  this.centerItemText,
  this.height = 70.0,
  this.iconSize = 20.0,
  this.iconTextSpace = 10.0,
  this.backgroundColor,
  this.inActiveColor,
  this.activeColor,
  this.notchedShape,
  this.onTabSelected,
  this.centerSelected = false,
  this.enableMiddleTabItem = true, // Flag to control middle tab item
  this.enableTopShadow = true,
  this.blurRadius = 2.0,
  this.spreadRadius = 0.2,
  this.offset = -2,
  this.shadowColor = Colors.black12,
  super.key,
}) : assert(items.length % 2 == 0, 'The items list length must be even.');