rangeSlider static method

CustomRangeSlider rangeSlider({
  1. Key? key,
  2. double initLeftValue = 0,
  3. double initRightValue = 1,
  4. double maxValue = 1,
  5. double minValue = 0,
  6. double thumbSize = 6,
  7. Color thumbColor = Colors.blue,
  8. Duration thumbAnimationDuration = const Duration(milliseconds: 200),
  9. bool isThumbAnimated = true,
  10. double trackIndent = 3,
  11. double trackHeight = 3,
  12. Color trackColor = Colors.grey,
  13. Color trackActiveColor = Colors.blue,
  14. List<Color>? trackActiveGradientColors,
  15. List<double>? trackActiveGradientStops,
  16. AlignmentGeometry trackActiveGradientBegin = Alignment.centerLeft,
  17. AlignmentGeometry trackActiveGradientEnd = Alignment.centerRight,
  18. TileMode trackActiveGradientTileMode = TileMode.clamp,
  19. bool floatingMark = true,
  20. double floatingMarkWidth = 1,
  21. double floatingMarkIndent = 3,
  22. Color floatingMarkColor = Colors.blue,
  23. void sliderValueMethod(
    1. double,
    2. double
    )?,
})

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,
    );