GFSegmentTabs constructor

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

Creates pills like structured tab bar. See GFTabBar GFSegmentTabs are best used as an alternative for GFTabBar.

Implementation

const GFSegmentTabs({
  Key? key,
  required this.length,
  required this.tabs,
  required this.tabController,
  this.height,
  this.width,
  this.border,
  this.borderRadius,
  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,
})  : assert(length != null && length >= 0),
      super(key: key);