TabBar constructor

const TabBar({
  1. Key? key,
  2. required List<Tab> tabs,
  3. TabController? controller,
  4. Color? indicatorColor,
  5. double indicatorWeight = 2.0,
  6. EdgeInsetsGeometry? labelPadding,
  7. TextStyle? labelStyle,
  8. TextStyle? unselectedLabelStyle,
  9. Color? labelColor,
  10. Color? unselectedLabelColor,
  11. bool isScrollable = false,
  12. Decoration? indicator,
  13. TabAlignment? tabAlignment = TabAlignment.start,
})

Implementation

const TabBar(
    {super.key,
    required this.tabs,
    this.controller,
    this.indicatorColor,
    this.indicatorWeight = 2.0,
    this.labelPadding,
    this.labelStyle,
    this.unselectedLabelStyle,
    this.labelColor,
    this.unselectedLabelColor,
    this.isScrollable = false,
    this.indicator,
    this.tabAlignment = TabAlignment.start});