HideableBottomBar constructor

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

Implementation

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