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

I don't need the onRatingUpdate: }, #71

Open
atta1234 opened this issue Jul 28, 2021 · 1 comment
Open

I don't need the onRatingUpdate: }, #71

atta1234 opened this issue Jul 28, 2021 · 1 comment

Comments

@atta1234
Copy link

i dont need this function onRatingUpdate: (rating) {
print(rating);
},
where I just wanna display the ratings, but it's required how to remove it?
Row(
children: [
RatingBar.builder(
initialRating: average,
minRating: 0,
direction:
Axis.horizontal,
allowHalfRating: false,
itemCount: 5,
itemPadding:
EdgeInsets.symmetric(
horizontal: 4.0),
itemBuilder:
(context, _) => Icon(
Icons.star,
color:
Color(0xFF50BC90),
),
onRatingUpdate: (rating) {
print(rating);
},
),
],
),

@Ruslanbek0809
Copy link

I know it is late answer but you can use RatingBarIndicator. It is used only to display rating.

@KeithBacalso KeithBacalso mentioned this issue Nov 10, 2022
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