-
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
Does not change state #30
Comments
can you show me snippets of your code ? |
I had to refactor my code to meet deadlines, I will surely reproduce it and show it to you soon. |
I can confirm this problem, I have readOnly page where user cannot change stars, then I have edit page, when I edit it, come back and use refreshIndicator, the new value is applied but stars are not filled. Only if I scroll all the way to the bottom, stars are redrawn. |
I have a same error sir. After i loaded data from server, i was setState(() { |
Issue mentioned by @marhyno occurs for us too on the version 1.1.1. The scenario is that after updating starCount and rating to a higher value then when initialised, the rating value remains the same and the stars are not filled (just outlined). It could be the fact the currentRating from _SmoothStarRatingState is initialised only in initState() and does not change value when calling setState(). Any timeline when this could be fixed? |
I don't have time to push a PR, but here is a stateless widget that you can use to show just stars and will update on each rebuild
|
worked! thank you. |
I'm using this package to show the stars of a particular review in my app, I noticed that after I update the state with ChnageNotifer and update the values, the stars don't change state. I have to hot restart my app for new changes to be reflected.
The text was updated successfully, but these errors were encountered: