slider static method
CustomSingleSlider
slider({
- Key? key,
- double initValue = 0,
- 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()?,
Slide track widget. All parameters can be viewed in CustomSingleSlider.
Implementation
static CustomSingleSlider slider({
Key? key,
double initValue = 0,
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)? sliderValueMethod,
}) =>
CustomSingleSlider(
key: key,
initValue: initValue,
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,
);