should_review 0.0.1
should_review: ^0.0.1 copied to clipboard
A flutter package to determine if you should prompt users to rate your app based on some set metrics.
should_review #
This package helps determine if a user should be prompted to rate your app.
The behavior of this package was inspired by the stackoverflow answer at https://stackoverflow.com/a/11284580/2628500 and a couple extra ideas.
You can safely call the determining function Future<bool> shouldReview()
of this package every time your app launches or at a particular point in your app to determine if you need to prompt for a review.
Features #
- Determine if you need to prompt user for review based on number of days since first app launch, number of times launched.
- Determine the above by a custom criteria. (In Progress)
Getting started #
Add the below to your pubspec.yaml
file.
dependencies:
should_review: ^0.0.1
As this package doesn't actually prompt users for a review, you will need a plugin or a native implementation or other means to do that for you.
A good candidate is the in_app_review
plugin.
Usage #
To determine whether to prompt a user for review based on default parameters, do the following.
import 'package:should_review/should_review.dart';
if (await ShouldReview.shouldReview()) {
// Prompt user for review.
}
Additional information #
For a practical example, see the package example section.
Contributing #
Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.
TODO #
- ❌ Determine if user should be prompted for a review based on a custom criteria.
- ❌ Get next prompt date.
- ❌ Get number of times launched.
- ❌ Get number of days since first launch.