FSliderStyle constructor
FSliderStyle({
- required FLabelLayoutStyle labelLayoutStyle,
- required FSliderStateStyle enabledStyle,
- required FSliderStateStyle disabledStyle,
- required FSliderErrorStyle errorStyle,
- double crossAxisExtent = 8,
- double? thumbSize,
- Alignment tooltipTipAnchor = Alignment.bottomCenter,
- Alignment tooltipThumbAnchor = Alignment.topCenter,
Creates a FSliderStyle.
Implementation
FSliderStyle({
required this.labelLayoutStyle,
required this.enabledStyle,
required this.disabledStyle,
required this.errorStyle,
this.crossAxisExtent = 8,
double? thumbSize,
this.tooltipTipAnchor = Alignment.bottomCenter,
this.tooltipThumbAnchor = Alignment.topCenter,
}) : assert(thumbSize == null || 0 < thumbSize, 'The thumb size must be positive'),
thumbSize = thumbSize ?? (Touch.primary ? 25 : 20);