StarRatingDisplay constructor
const
StarRatingDisplay({
- Key? key,
- int starCount = 5,
- required double rating,
- Duration animationDuration = const Duration(milliseconds: 1000),
- double starSize = 40.0,
- double starSpacing = 4.0,
- Color selectedFillColor = Colors.amber,
- bool showSelectedBorder = true,
- Color selectedStrokeColor = Colors.amber,
- double selectedStrokeWidth = 2.0,
- Color unselectedStrokeColor = Colors.grey,
- double unselectedStrokeWidth = 2.0,
- StarEdgeShape starEdgeShape = StarEdgeShape.smooth,
- BoxDecoration? decoration,
Implementation
const StarRatingDisplay({
super.key,
this.starCount = 5,
required this.rating,
this.animationDuration = const Duration(milliseconds: 1000),
this.starSize = 40.0,
this.starSpacing = 4.0,
this.selectedFillColor = Colors.amber,
this.showSelectedBorder = true,
this.selectedStrokeColor = Colors.amber,
this.selectedStrokeWidth = 2.0,
this.unselectedStrokeColor = Colors.grey,
this.unselectedStrokeWidth = 2.0,
this.starEdgeShape = StarEdgeShape.smooth,
this.decoration,
});