duo_rating_dialog 0.0.3 copy "duo_rating_dialog: ^0.0.3" to clipboard
duo_rating_dialog: ^0.0.3 copied to clipboard

outdated

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 #

duo_rating_updated

  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

3
likes
0
pub points
0%
popularity

Publisher

unverified uploader

An extended version of the rating_dialog package. Allows user to rate two Star Rating bars. Also shows a customizable icon.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_rating_bar

More

Packages that depend on duo_rating_dialog