duo_rating_dialog 0.0.3 duo_rating_dialog: ^0.0.3 copied to clipboard
An extended version of the rating_dialog package. Allows user to rate two Star Rating bars. Also shows a customizable icon.
A custom rating dialog for developers who want to ask users for two ratings
Features #
Enhanced rating_dialog
Usage #
return DuoRatingDialog(
title: const Text('How was your session?'),
submitButtonText: 'SUBMIT',
submitButtonTextStyle: const TextStyle(color: Colors.black),
onSubmitted: (value) {
// Passing data to a new page as an example
Map<String, dynamic> ratingsOneMap = {
"rating": value.ratingOne,
"status": value.getRatingOneStatus
};
Map<String, dynamic> ratingsTwoMap = {
"rating": value.ratingTwo,
"status": value.getRatingTwoStatus
};
List<Map<String, dynamic>> ratingsData = [
ratingsOneMap,
ratingsTwoMap
];
Navigator.push(
context,
MaterialPageRoute(
builder: ((context) =>
ResultsPage(ratingsData: ratingsData))));
});
Additional information #
This is my first package. Feel free to flag any issues you might have