RatingDialog constructor
const
RatingDialog({
- required Text title,
- Text? message,
- Widget? image,
- required String submitButtonText,
- TextStyle submitButtonTextStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 17),
- required dynamic onSubmitted(),
- Color starColor = Colors.amber,
- double starSize = 40.0,
- Function? onCancelled,
- bool showCloseButton = true,
- bool force = false,
- double initialRating = 0,
- bool enableComment = true,
- String commentHint = 'Tell us your comments',
Implementation
const RatingDialog({
required this.title,
this.message,
this.image,
required this.submitButtonText,
this.submitButtonTextStyle = const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 17,
),
required this.onSubmitted,
this.starColor = Colors.amber,
this.starSize = 40.0,
this.onCancelled,
this.showCloseButton = true,
this.force = false,
this.initialRating = 0,
this.enableComment = true,
this.commentHint = 'Tell us your comments',
});