rangeSlider static method
CustomRangeSlider
rangeSlider({
- Key? key,
- double initLeftValue = 0,
- double initRightValue = 1,
- double maxValue = 1,
- double minValue = 0,
- double thumbSize = 6,
- Color thumbColor = Colors.blue,
- Duration thumbAnimationDuration = const Duration(milliseconds: 200),
- bool isThumbAnimated = true,
- double trackIndent = 3,
- double trackHeight = 3,
- Color trackColor = Colors.grey,
- Color trackActiveColor = Colors.blue,
- List<
Color> ? trackActiveGradientColors, - List<
double> ? trackActiveGradientStops, - AlignmentGeometry trackActiveGradientBegin = Alignment.centerLeft,
- AlignmentGeometry trackActiveGradientEnd = Alignment.centerRight,
- TileMode trackActiveGradientTileMode = TileMode.clamp,
- bool floatingMark = true,
- double floatingMarkWidth = 1,
- double floatingMarkIndent = 3,
- Color floatingMarkColor = Colors.blue,
- void sliderValueMethod()?,
Range Slider Widget. All parameters can be viewed in CustomRangeSlider.
Implementation
static CustomRangeSlider rangeSlider({
Key? key,
double initLeftValue = 0,
double initRightValue = 1,
double maxValue = 1,
double minValue = 0,
double thumbSize = 6,
Color thumbColor = Colors.blue,
Duration thumbAnimationDuration = const Duration(milliseconds: 200),
bool isThumbAnimated = true,
double trackIndent = 3,
double trackHeight = 3,
Color trackColor = Colors.grey,
Color trackActiveColor = Colors.blue,
List<Color>? trackActiveGradientColors,
List<double>? trackActiveGradientStops,
AlignmentGeometry trackActiveGradientBegin = Alignment.centerLeft,
AlignmentGeometry trackActiveGradientEnd = Alignment.centerRight,
TileMode trackActiveGradientTileMode = TileMode.clamp,
bool floatingMark = true,
double floatingMarkWidth = 1,
double floatingMarkIndent = 3,
Color floatingMarkColor = Colors.blue,
void Function(double, double)? sliderValueMethod,
}) =>
CustomRangeSlider(
key: key,
initLeftValue: initLeftValue,
initRightValue: initRightValue,
maxValue: maxValue,
minValue: minValue,
thumbSize: thumbSize,
thumbColor: thumbColor,
thumbAnimationDuration: thumbAnimationDuration,
isThumbAnimated: isThumbAnimated,
trackIndent: trackIndent,
trackHeight: trackHeight,
trackColor: trackColor,
trackActiveColor: trackActiveColor,
trackActiveGradientColors: trackActiveGradientColors,
trackActiveGradientStops: trackActiveGradientStops,
trackActiveGradientBegin: trackActiveGradientBegin,
trackActiveGradientEnd: trackActiveGradientEnd,
trackActiveGradientTileMode: trackActiveGradientTileMode,
floatingMark: floatingMark,
floatingMarkWidth: floatingMarkWidth,
floatingMarkIndent: floatingMarkIndent,
floatingMarkColor: floatingMarkColor,
sliderValueMethod: sliderValueMethod,
);