LitSlider constructor

const LitSlider({
  1. required double max,
  2. required double min,
  3. required void onChanged(
    1. double
    ),
  4. required double value,
  5. Color activeTrackColor = const Color(0xFFb5a0a0),
  6. Color inactiveTrackColor = const Color(0xFFcbc7c7),
  7. Color thumbColor = const Color(0xFFECECEC),
  8. double thumbHeight = 34.0,
  9. double thumbWidth = 34.0,
  10. double thumbRadius = 17.0,
  11. BoxShadow thumbBoxShadow = const BoxShadow(blurRadius: 4.0, color: Colors.black26, offset: Offset(2.0, 2.0), spreadRadius: -1.0),
  12. double thumbFontSize = 13.0,
  13. Color thumbTextColor = LitColors.mediumGrey,
  14. BoxShadow overlayBoxShadow = const BoxShadow(blurRadius: 8.0, color: Colors.black12, offset: Offset(-2.0, 2.0), spreadRadius: 1.0),
  15. bool displayValue = true,
  16. bool displayRangeBadges = true,
})

Implementation

const LitSlider({
  required this.max,
  required this.min,
  required this.onChanged,
  required this.value,
  this.activeTrackColor = const Color(0xFFb5a0a0),
  this.inactiveTrackColor = const Color(0xFFcbc7c7),
  this.thumbColor = const Color(0xFFECECEC),
  this.thumbHeight = 34.0,
  this.thumbWidth = 34.0,
  this.thumbRadius = 17.0,
  this.thumbBoxShadow = const BoxShadow(
    blurRadius: 4.0,
    color: Colors.black26,
    offset: Offset(2.0, 2.0),
    spreadRadius: -1.0,
  ),
  this.thumbFontSize = 13.0,
  this.thumbTextColor = LitColors.mediumGrey,
  this.overlayBoxShadow = const BoxShadow(
    blurRadius: 8.0,
    color: Colors.black12,
    offset: Offset(-2.0, 2.0),
    spreadRadius: 1.0,
  ),
  this.displayValue = true,
  this.displayRangeBadges = true,
});