Search packages, repositories and app categories

rating_dialog cover
Package detailsv2.0.4

rating_dialog

A beautiful and customizable Star Rating Dialog package for Flutter

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.1K
Likes
250
Pub points
150

Install package

flutter pub add rating_dialog

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A visually appealing and highly customizable star rating dialog for Flutter applications. It enables developers to easily integrate a polished rating prompt into their apps, allowing users to provide feedback with intuitive star selection. The dialog supports customization of colors, icons, text, and layout, ensuring seamless integration with app themes. Available across all major platforms, it enhances user engagement by prompting ratings at strategic moments. Ideal for collecting user feedback in a non-intrusive way.

Use cases

  • Collecting user feedback after app usage
  • Prompting ratings post-task completion
  • Enhancing user engagement through interactive dialogs
  • Integrating feedback collection in mobile and web apps
  • Customizing rating UI to match app branding

Key features

  • Customizable star appearance and colors
  • Configurable dialog title and description
  • Support for multiple platforms
  • Easy integration via pub.dev
  • Responsive design across devices
  • Option to handle user rating submission

Suitable for

  • Mobile and web app developers
  • Apps seeking user feedback
  • Projects requiring polished UI components
  • Developers wanting minimal setup
  • Teams focused on user experience

Considerations

  • May require additional logic for rating persistence
  • Custom styling might need platform-specific adjustments
  • Limited to star-based rating only
  • No built-in analytics or data tracking
  • Depends on external repository for updates

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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(
      initialRating: 1.0,
      // your app's name?
      title: Text(
        'Rating Dialog',
        textAlign: TextAlign.center,
        style: const TextStyle(
          fontSize: 25,
          fontWeight: FontWeight.bold,
        ),
      ),
      // encourage your user to leave a high rating?
      message: Text(
        'Tap a star to set your rating. Add more description here if you want.',
        textAlign: TextAlign.center,
        style: const TextStyle(fontSize: 15),
      ),
      // your app's logo?
      image: const FlutterLogo(size: 100),
      submitButtonText: 'Submit',
      commentHint: 'Set your custom comment hint',
      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,
      barrierDismissible: true, // set to false if you want to force a rating
      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!

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package