FloatyNavBar constructor

const FloatyNavBar({
  1. Key? key,
  2. required List<FloatyTab> tabs,
  3. required int selectedTab,
  4. EdgeInsetsGeometry? margin = const EdgeInsetsDirectional.symmetric(vertical: 16),
  5. double height = 60,
  6. double gap = 16,
  7. Color? backgroundColor,
  8. List<BoxShadow>? boxShadow,
  9. FloatyShape shape = const CircleShape(),
})

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(),
});