HideableBottomBar constructor

const HideableBottomBar({
  1. Key? key,
  2. required double bottomPosition,
  3. required List<HideableBottomNavigationItem> children,
  4. required dynamic onSelected(
    1. HideableBottomNavigationItem
    ),
  5. required int selectedIndex,
  6. Color backgroundColor = Colors.white,
  7. Widget? bottomBarWidget,
  8. double cornerRadius = 16.0,
  9. Curve? curve,
  10. Duration duration = const Duration(milliseconds: 300),
  11. double height = 60,
  12. double margin = 16,
  13. dynamic onIndexChanged(
    1. int
    )?,
  14. EdgeInsetsGeometry? padding,
  15. Color selectedColor = Colors.black,
  16. TextStyle selectedItemTextStyle = const TextStyle(fontSize: 16, color: Colors.white),
  17. List<BoxShadow> shadow = const [BoxShadow(color: Colors.grey, blurRadius: 16)],
  18. bool showTooltips = false,
  19. Color unselectedColor = Colors.white,
})

Default constructor.

Implementation

const HideableBottomBar({
  Key? key,
  required this.bottomPosition,
  required this.children,
  required this.onSelected,
  required this.selectedIndex,
  this.backgroundColor = Colors.white,
  this.bottomBarWidget,
  this.cornerRadius = 16.0,
  this.curve,
  this.duration = const Duration(milliseconds: 300),
  this.height = 60,
  this.margin = 16,
  this.onIndexChanged,
  this.padding,
  this.selectedColor = Colors.black,
  this.selectedItemTextStyle =
      const TextStyle(fontSize: 16, color: Colors.white),
  this.shadow = const [BoxShadow(color: Colors.grey, blurRadius: 16)],
  this.showTooltips = false,
  this.unselectedColor = Colors.white,
}) : super(key: key);