Skip to content
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

allowHalfRating gone wrong #13

Closed
dungnv2602 opened this issue Sep 3, 2019 · 1 comment
Closed

allowHalfRating gone wrong #13

dungnv2602 opened this issue Sep 3, 2019 · 1 comment

Comments

@dungnv2602
Copy link

SmoothStarRating( allowHalfRating: true, rating: novel.rating, starCount: 10, size: 16, color: theme.accentColor, borderColor: theme.accentColor, spacing: 0.0, )
allowHalfRating_false

The code above was supposed to disallow half rating but it actually did allow, and vice versa. I believe there sth wrong in your conditional checking in your code.

SmoothStarRating( allowHalfRating: true, rating: novel.rating, starCount: 10, size: 16, color: theme.accentColor, borderColor: theme.accentColor, spacing: 0.0, )
allowHalfRating_true

@thangmam
Copy link
Owner

Hi there, the first code you posted has allowHalfRating set to true , so you will get half rated stars as you posted in the first image which is the expected behaviour.The second code you posted also has allowHalfRating set to true(This may be typo on your side,Please recheck your code again) .Looking at the second image, the parameter allowHalfRating =false should give something similar to second image.I am closing this for now.Dont hesitate to open it again.Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants