GFTabBar constructor

const GFTabBar({
  1. Key? key,
  2. required int? length,
  3. required List<Widget> tabs,
  4. required TabController? controller,
  5. bool isScrollable = false,
  6. double? tabBarHeight,
  7. Color? tabBarColor,
  8. Color? indicatorColor,
  9. double indicatorWeight = 2.0,
  10. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  11. Decoration? indicator,
  12. TabBarIndicatorSize? indicatorSize,
  13. Color? labelColor,
  14. TextStyle? labelStyle,
  15. EdgeInsetsGeometry? labelPadding,
  16. Color? unselectedLabelColor,
  17. TextStyle? unselectedLabelStyle,
  18. ShapeBorder? shape,
  19. double? width,
})

Creates a material design tab bar. The tabs argument must not be null and its length must match the controller's TabController.length.

Implementation

const GFTabBar({
  Key? key,
  required this.length,
  required this.tabs,
  required this.controller,
  this.isScrollable = false,
  this.tabBarHeight,
  this.tabBarColor,
  this.indicatorColor,
  this.indicatorWeight = 2.0,
  this.indicatorPadding = EdgeInsets.zero,
  this.indicator,
  this.indicatorSize,
  this.labelColor,
  this.labelStyle,
  this.labelPadding,
  this.unselectedLabelColor,
  this.unselectedLabelStyle,
  this.shape,
  this.width,
})  : assert(length != null && length >= 0),
      super(key: key);