TabBar constructor

const TabBar({
  1. Key? key,
  2. required List<Tab> tabs,
  3. TabController? controller,
  4. Color? indicatorColor,
  5. Color? labelColor,
  6. Color? unselectedLabelColor,
  7. TextStyle? labelStyle,
  8. TextStyle? unselectedLabelStyle,
  9. EdgeInsets? labelPadding,
  10. ValueChanged<int>? onTap,
  11. FocusNode? focusNode,
})

Creates a TabBar with the given tabs.

Implementation

const TabBar({
  super.key,
  required this.tabs,
  this.controller,
  this.indicatorColor,
  this.labelColor,
  this.unselectedLabelColor,
  this.labelStyle,
  this.unselectedLabelStyle,
  this.labelPadding,
  this.onTap,
  this.focusNode,
});