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

wrap alignment does nothing #78

Open
martipello opened this issue Jan 31, 2022 · 4 comments
Open

wrap alignment does nothing #78

martipello opened this issue Jan 31, 2022 · 4 comments

Comments

@martipello
Copy link

change wrap alignment to center or start and observe it does nothing check the code and see its not being used

return Material(
  color: Colors.transparent,
  child: Wrap(
    alignment: WrapAlignment.start,
    textDirection: textDirection,
    direction: widget.direction,
    children: List.generate(
      widget.itemCount,
      (index) => _buildRating(context, index),
    ),
  ),
);

}

i think this alignment: WrapAlignment.start, should be widget.wrapAlignment

@ccosnean
Copy link

@martipello i have the same issue, this needs more attention.

@DevTiago
Copy link

Same here! I can't align the rate bar to parent widget..

@DevTiago
Copy link

Well, until this isn't fixed i've user RatingBar.build inside an Align widget to center the rating bar.
Don't forget to handle the itemSize to prevent your UI to break on smaller devices.

@wheeOs
Copy link

wheeOs commented Dec 6, 2023

this issue should be fixed by this line:
https://github.com/sarbagyastha/flutter_rating_bar/blob/58ff76f81297838390dd950a30240593e7459af5/lib/src/rating_bar.dart#L241C41-L241C41

but currently flutter_rating_bar is pretty outdated on pub.dev

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

4 participants