SafaehFloatingNavBar constructor
const
SafaehFloatingNavBar({
- Key? key,
- required int selectedIndex,
- required ValueChanged<
int> onDestinationSelected, - required List<
SafaehSidenavDestination> destinations, - Color? activeColor,
- Color? inactiveColor,
- Color? backgroundColor,
- double radius = 24,
- double iconSize = 24,
- List<
BoxShadow> ? shadows, - BoxBorder? border,
- SafaehFloatingAppearance? floatingAppearance,
- Duration? motion,
- EdgeInsetsGeometry margin = const EdgeInsets.symmetric(horizontal: 16),
- 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,
});