-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Code example to load on particular page #87
Comments
https://github.com/britannio/in_app_review#requestreview demonstrates how to use the plugin. This example attempts to show the popup after the first frame has been displayed. @override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) async {
final InAppReview inAppReview = InAppReview.instance;
if (await inAppReview.isAvailable()) {
inAppReview.requestReview();
}
});
} |
ChatGPT actually provides an excellent response: |
https://www.phind.com/search?cache=8564ce05-5124-486c-a91e-48e2cf8b9d96 provides a less direct response but with links to sources such as https://stackoverflow.com/questions/65399583/use-of-in-app-review-package-in-flutter |
Thanks @britannio |
And my code looks like this
|
Nice. Bear in mind that you may be able to replace |
Can you please share the Code example to load on a particular page on load?
can we use it in initState()?
The text was updated successfully, but these errors were encountered: