SegmentedTabControl constructor
const
SegmentedTabControl({
- Key? key,
- required List<
SegmentTab> tabs, - double height = kTextTabBarHeight,
- TabController? controller,
- Color? tabTextColor,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- Color? selectedTabTextColor,
- double squeezeIntensity = 1,
- Duration squeezeDuration = const Duration(milliseconds: 500),
- EdgeInsets indicatorPadding = EdgeInsets.zero,
- EdgeInsets tabPadding = const EdgeInsets.symmetric(horizontal: 8),
- Color? splashColor,
- Color? splashHighlightColor,
- BoxDecoration? barDecoration = const BoxDecoration(color: Colors.grey, borderRadius: BorderRadius.all(Radius.circular(10))),
- 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)),
),
});