SegmentedTabControl constructor

const SegmentedTabControl({
  1. Key? key,
  2. double height = 46,
  3. required List<SegmentTab> tabs,
  4. TabController? controller,
  5. Color? backgroundColor,
  6. Gradient? backgroundGradient,
  7. Color? tabTextColor,
  8. TextStyle? textStyle,
  9. TextStyle? selectedTextStyle,
  10. Color? selectedTabTextColor,
  11. Color? indicatorColor,
  12. Gradient? indicatorGradient,
  13. double squeezeIntensity = 1,
  14. Duration squeezeDuration = const Duration(milliseconds: 500),
  15. EdgeInsets indicatorPadding = EdgeInsets.zero,
  16. EdgeInsets tabPadding = const EdgeInsets.symmetric(horizontal: 8),
  17. Radius radius = const Radius.circular(20),
  18. Color? splashColor,
  19. Color? splashHighlightColor,
})

Implementation

const SegmentedTabControl({
  Key? key,
  this.height = 46,
  required this.tabs,
  this.controller,
  this.backgroundColor,
  this.backgroundGradient,
  this.tabTextColor,
  this.textStyle,
  this.selectedTextStyle,
  this.selectedTabTextColor,
  this.indicatorColor,
  this.indicatorGradient,
  this.squeezeIntensity = 1,
  this.squeezeDuration = const Duration(milliseconds: 500),
  this.indicatorPadding = EdgeInsets.zero,
  this.tabPadding = const EdgeInsets.symmetric(horizontal: 8),
  this.radius = const Radius.circular(20),
  this.splashColor,
  this.splashHighlightColor,
}) : super(key: key);