ScrollableSegmentContent constructor
const
ScrollableSegmentContent({
- required List<
GlassSegment> tabs, - required int selectedIndex,
- required ValueChanged<
int> onTabSelected, - required bool isScrollable,
- required ScrollController scrollController,
- required Color? indicatorColor,
- required TextStyle? selectedLabelStyle,
- required TextStyle? unselectedLabelStyle,
- required Color? selectedIconColor,
- required Color? unselectedIconColor,
- required double iconSize,
- required EdgeInsetsGeometry labelPadding,
- required GlassQuality quality,
- BorderRadius? indicatorBorderRadius,
- LiquidGlassSettings? indicatorSettings,
- double indicatorPinchStrength = 0.4,
- EdgeInsetsGeometry indicatorExpansion = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- GlobalKey<
State< ? backgroundKey,StatefulWidget> > - MaskingQuality maskingQuality = MaskingQuality.high,
- DividerSettings? dividerSettings,
- List<
BoxShadow> ? indicatorShadow, - BorderRadius? tabBarBorderRadius,
- Key? key,
Implementation
const ScrollableSegmentContent({
required this.tabs,
required this.selectedIndex,
required this.onTabSelected,
required this.isScrollable,
required this.scrollController,
required this.indicatorColor,
required this.selectedLabelStyle,
required this.unselectedLabelStyle,
required this.selectedIconColor,
required this.unselectedIconColor,
required this.iconSize,
required this.labelPadding,
required this.quality,
this.indicatorBorderRadius,
this.indicatorSettings,
this.indicatorPinchStrength = 0.4,
this.indicatorExpansion =
const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
this.backgroundKey,
this.maskingQuality = MaskingQuality.high,
this.dividerSettings,
this.indicatorShadow,
this.tabBarBorderRadius,
super.key,
});