SegmentedTabControl constructor

const SegmentedTabControl({
  1. Key? key,
  2. required List<SegmentTab> tabs,
  3. double height = kTextTabBarHeight,
  4. TabController? controller,
  5. Color? tabTextColor,
  6. TextStyle? textStyle,
  7. TextStyle? selectedTextStyle,
  8. Color? selectedTabTextColor,
  9. double squeezeIntensity = 1,
  10. Duration squeezeDuration = const Duration(milliseconds: 500),
  11. EdgeInsets indicatorPadding = EdgeInsets.zero,
  12. EdgeInsets tabPadding = const EdgeInsets.symmetric(horizontal: 8),
  13. Color? splashColor,
  14. Color? splashHighlightColor,
  15. BoxDecoration? barDecoration = const BoxDecoration(color: Colors.grey, borderRadius: BorderRadius.all(Radius.circular(10))),
  16. BoxDecoration? indicatorDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10))),
})

Implementation

const SegmentedTabControl({
  super.key,
  required this.tabs,
  this.height = kTextTabBarHeight,
  this.controller,
  this.tabTextColor,
  this.textStyle,
  this.selectedTextStyle,
  this.selectedTabTextColor,
  this.squeezeIntensity = 1,
  this.squeezeDuration = const Duration(milliseconds: 500),
  this.indicatorPadding = EdgeInsets.zero,
  this.tabPadding = const EdgeInsets.symmetric(horizontal: 8),
  this.splashColor,
  this.splashHighlightColor,
  this.barDecoration = const BoxDecoration(
    color: Colors.grey,
    borderRadius: BorderRadius.all(Radius.circular(10)),
  ),
  this.indicatorDecoration = const BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.all(Radius.circular(10)),
  ),
});