rating_dialog 2.0.2 copy "rating_dialog: ^2.0.2" to clipboard
rating_dialog: ^2.0.2 copied to clipboard

outdated

A beautiful and customizable Star Rating Dialog package for Flutter

rating_dialog #

A beautiful and customizable Rating Dialog package for Flutter! Supports all platforms that flutter supports!

Import the rating_dialog package #

To use the rating_dialog plugin, follow the plugin installation instructions.

Use the package #

Add the following import to your Dart code:

import 'package:rating_dialog/rating_dialog.dart';

We use the flutter's showDialog function to show our Rating Dialog

final _dialog = RatingDialog(
    // your app's name?
    title: 'Rating Dialog',
    // encourage your user to leave a high rating?
    message:
        'Tap a star to set your rating. Add more description here if you want.',
    // your app's logo?
    image: const FlutterLogo(size: 100),
    submitButton: 'Submit',
    onCancelled: () => print('cancelled'),
    onSubmitted: (response) {
        print('rating: ${response.rating}, comment: ${response.comment}');

        // TODO: add your own logic
        if (response.rating < 3.0) {
            // send their comments to your email or anywhere you wish
            // ask the user to contact you instead of leaving a bad review
        } else {
            _rateAndReviewApp();
        }
    },
);

// show the dialog
showDialog(
    context: context,
    builder: (context) => _dialog,
);

Example #

See the example application source for a complete sample app using the rating_dialog package.

Issues and feedback #

Please file issues to send feedback or report a bug. Thank you!

245
likes
0
pub points
96%
popularity

Publisher

verified publisherstackwares.com

A beautiful and customizable Star Rating Dialog package for Flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_rating_bar

More

Packages that depend on rating_dialog