RatingDynamicSlider constructor
const
RatingDynamicSlider({
- Key? key,
- required dynamic onValueChanged(
- double val
- required List<
String> imagesList, - double? trackHeight = 3,
- Color? thumbColor = Colors.blue,
- Color? activeTrackColor = Colors.blueGrey,
- Color? activeTickMarkColor = Colors.green,
- Color? inactiveTrackColor = Colors.black12,
- Color? overlayColor = Colors.cyan,
- Color? valueIndicatorColor = Colors.grey,
- Color? inactiveTickMarkColor = Colors.black87,
- double? thumbRadius = 11,
- double? overlayThumbRadius = 15,
- AssetDirection? assetDirection = AssetDirection.below,
- double? tickMarkRadius = 4,
Implementation
const RatingDynamicSlider({
Key? key,
required this.onValueChanged,
required this.imagesList,
this.trackHeight = 3,
this.thumbColor = Colors.blue,
this.activeTrackColor = Colors.blueGrey,
this.activeTickMarkColor = Colors.green,
this.inactiveTrackColor = Colors.black12,
this.overlayColor = Colors.cyan,
this.valueIndicatorColor = Colors.grey,
this.inactiveTickMarkColor = Colors.black87,
this.thumbRadius = 11,
this.overlayThumbRadius = 15,
this.assetDirection = AssetDirection.below,
this.tickMarkRadius = 4,
}) : assert(imagesList.length >= 2, "Please add more than 2 images to draw the slider"),
super(key: key);