TabBar constructor

const TabBar({
  1. Key? key,
  2. required List<Tab> tabs,
  3. required TabController controller,
  4. ValueChanged<int>? onTap,
  5. Color? indicatorColor,
  6. Color? labelColor,
  7. Color? unselectedLabelColor,
  8. Color? backgroundColor,
  9. bool isScrollable = false,
  10. bool pill = false,
  11. TextStyle? labelStyle,
  12. double? height,
})

Implementation

const TabBar({
  super.key,
  required this.tabs,
  required this.controller,
  this.onTap,
  this.indicatorColor,
  this.labelColor,
  this.unselectedLabelColor,
  this.backgroundColor,
  this.isScrollable = false,
  this.pill = false,
  this.labelStyle,
  this.height,
});