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