SafaehFloatingNavBar constructor

const SafaehFloatingNavBar({
  1. Key? key,
  2. required int selectedIndex,
  3. required ValueChanged<int> onDestinationSelected,
  4. required List<SafaehSidenavDestination> destinations,
  5. Color? activeColor,
  6. Color? inactiveColor,
  7. Color? backgroundColor,
  8. double radius = 24,
  9. double iconSize = 24,
  10. List<BoxShadow>? shadows,
  11. BoxBorder? border,
  12. SafaehFloatingAppearance? floatingAppearance,
  13. Duration? motion,
  14. EdgeInsetsGeometry margin = const EdgeInsets.symmetric(horizontal: 16),
  15. bool hideWhenKeyboardVisible = false,
})

Implementation

const SafaehFloatingNavBar({
  super.key,
  required this.selectedIndex,
  required this.onDestinationSelected,
  required this.destinations,
  this.activeColor,
  this.inactiveColor,
  this.backgroundColor,
  this.radius = 24,
  this.iconSize = 24,
  this.shadows,
  this.border,
  this.floatingAppearance,
  this.motion,
  this.margin = const EdgeInsets.symmetric(horizontal: 16),
  this.hideWhenKeyboardVisible = false,
});