bilateralSlider static method

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

Bilateral sliding track widget. All parameters can be viewed in CustomBilateralSilder.

Implementation

static CustomBilateralSilder bilateralSlider({
  Key? key,
  double initValue = 0,
  double maxValue = 1,
  double minValue = -1,
  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,
}) =>
    CustomBilateralSilder(
      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,
    );