Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

rating dialog

a beautiful and customizable star rating dialog package for flutter.

rating_dialogv

rating_dialog

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 built in showdialog function to show our rating dialog

showdialog(
    context: context,
    barrierdismissible: true, // set to false if you want to force a rating
    builder: (context) {
        return ratingdialog(
        icon: const flutterlogo(
            size: 100,
            colors: colors.red), // set your own image/icon widget
        title: "the rating dialog",
        description:
            "tap a star to set your rating. add more description here if you want.",
        submitbutton: "submit",
        alternativebutton: "contact us instead?", // optional
        positivecomment: "we are so happy to hear :)", // optional
        negativecomment: "we're sad to hear :(", // optional
        accentcolor: colors.red, // optional
        onsubmitpressed: (int rating) {
            print("onsubmitpressed: rating = $rating");
            // todo: open the app's page on google play / apple app store
        },
        onalternativepressed: () {
            print("onalternativepressed: do something");
            // todo: maybe you want the user to contact you instead of rating a bad review
        },
        );
    });

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.