Tabs constructor

const Tabs({
  1. Key? key,
  2. List<String> tabs = const ['Tab 1', 'Tab 2', 'Tab 3'],
  3. bool hasIcon = false,
  4. bool hasLabel = true,
  5. IconData? icon = Icons.face_5_outlined,
  6. List<IconData?>? icons,
  7. List<Widget?>? iconWidgets,
  8. int selectedIndex = 0,
  9. TabsType type = TabsType.gray,
  10. ValueChanged<int>? onTabSelected,
})

Creates a Tabs navigation instance.

Implementation

const Tabs({
  super.key,
  this.tabs = const ['Tab 1', 'Tab 2', 'Tab 3'],
  this.hasIcon = false,
  this.hasLabel = true,
  this.icon = Icons.face_5_outlined,
  this.icons,
  this.iconWidgets,
  this.selectedIndex = 0,
  this.type = TabsType.gray,
  this.onTabSelected,
});