-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Beginner question regarding rate_my_app plugin #67
Comments
Hey,
|
Hi Skyost, thanks for the reply. When I replace
Is there a minimal example I can follow that performs what I want to achieve? Thank you |
You can use the Example located in the README. It has not only be renamed, but has also been a bit changed : actionsBuilder: (context, stars) { // Triggered when the user updates the star rating.
return [ // Return a list of actions (that will be shown at the bottom of the dialog).
FlatButton(
child: Text('OK'),
onPressed: () async {
print('Thanks for the ' + (stars == null ? '0' : stars.round().toString()) + ' star(s) !');
// You can handle the result as you want (for instance if the user puts 1 star then open your contact page, if he puts more then open the store page, etc...).
// This allows to mimic the behavior of the default "Rate" button. See "Advanced > Broadcasting events" for more information :
await rateMyApp.callEvent(RateMyAppEventType.rateButtonPressed);
Navigator.pop<RateMyAppDialogButton>(context, RateMyAppDialogButton.rate);
},
),
];
}, |
Thank you, thats much helpful. I think my issue was following an outdated tutorial and running into problems. In the readme I'm not looking at implementing the stars system, I just want a message to ask for rating message so I wrote this in my
But the rating dialogue does not show, I get these messages in the console though:
Thanks |
That's possible ah ah, thank you.
See #64. |
I read that, thank you. But I'm not looking to display the new in-app rating dialogue, I want to display the plugin dialogue. Thanks |
Then set |
Oh my youre, right.. its right there, I just didint see it. Thank you for being patient with me :) Now, I read this in one of the other closed issues as well, but my understanding is that we will have to implement our own method of opening the play store link after Thanks |
Using
|
Thank you so much for your help, its now working as expected. May I suggest adding this minimal setup example to the readme for the beginners like me amongst us :) |
Don't hesitate to submit me your changes by submitting pull requests ! 😉 |
Hi,
I apologise in advance for the very beginner question but I am new to flutter and am having trouble trying to implement this plugin.
The example code shown in the plugin is a bit complicated for me as it relies on an additional
content.dart
file which I tried to make sense of but failed.This implementation of rate_my_app makes sense to me and is very easy: https://github.com/MarcusNg/flutter_rating_prompt/blob/master/lib/main.dart but it looks like this is for an old version and it does not work with the latest version of the plugin.
From the linked page above this is the part that is outdated:
The
onRatingChanged
parameter no longer exists, and I dont know how to replace it.I am simply wanting to use the plugin to show a popup, after say 5 app launches, if they want to leave a rating.. if yes, they should be directed to the play store link.
That is all, I do not want to measure stars or do anything else.
Can you please help me out here.
Thank you
The text was updated successfully, but these errors were encountered: