FloatyNavBar constructor
const
FloatyNavBar({})
Creates a FloatyNavBar.
The tabs
parameter is required and provides the list of tabs to display in
the navigation bar. The selectedTab
parameter specifies the index of the
currently selected tab.
The following parameters are optional:
- margin: The margin around the navigation bar.
- height: The height of the navigation bar. Defaults to 60.
- gap: The gap between the tab bar and the action button. Defaults to 16.
- backgroundColor: The background color of the navigation bar.
- boxShadow: The shadow effect applied to the navigation bar.
- shape: The shape of the navigation bar. Defaults to CircleShape.
Implementation
const FloatyNavBar({
super.key,
required this.tabs,
required this.selectedTab,
this.margin = const EdgeInsetsDirectional.symmetric(vertical: 16),
this.height = 60,
this.gap = 16,
this.backgroundColor,
this.boxShadow,
this.shape = const CircleShape(),
});