ScrollableSegmentContent constructor

const ScrollableSegmentContent({
  1. required List<GlassSegment> tabs,
  2. required int selectedIndex,
  3. required ValueChanged<int> onTabSelected,
  4. required bool isScrollable,
  5. required ScrollController scrollController,
  6. required Color? indicatorColor,
  7. required TextStyle? selectedLabelStyle,
  8. required TextStyle? unselectedLabelStyle,
  9. required Color? selectedIconColor,
  10. required Color? unselectedIconColor,
  11. required double iconSize,
  12. required EdgeInsetsGeometry labelPadding,
  13. required GlassQuality quality,
  14. BorderRadius? indicatorBorderRadius,
  15. LiquidGlassSettings? indicatorSettings,
  16. double indicatorPinchStrength = 0.4,
  17. EdgeInsetsGeometry indicatorExpansion = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  18. GlobalKey<State<StatefulWidget>>? backgroundKey,
  19. MaskingQuality maskingQuality = MaskingQuality.high,
  20. DividerSettings? dividerSettings,
  21. List<BoxShadow>? indicatorShadow,
  22. BorderRadius? tabBarBorderRadius,
  23. 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,
});