SegmentedTabControl constructor
const
SegmentedTabControl({
- Key? key,
- double height = 46,
- required List<
SegmentTab> tabs, - TabController? controller,
- Color? backgroundColor,
- Gradient? backgroundGradient,
- Color? tabTextColor,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- Color? selectedTabTextColor,
- Color? indicatorColor,
- Gradient? indicatorGradient,
- double squeezeIntensity = 1,
- Duration squeezeDuration = const Duration(milliseconds: 500),
- EdgeInsets indicatorPadding = EdgeInsets.zero,
- EdgeInsets tabPadding = const EdgeInsets.symmetric(horizontal: 8),
- Radius radius = const Radius.circular(20),
- Color? splashColor,
- 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);