Open SdxCoder opened 4 years ago
Rating bar is has widget wrapper align, which makes it always align center. Removing align widget fix the issue.
Before removing align
return Align( child: Row( mainAxisSize: MainAxisSize.min, children: List.generate(widget.maxRating, (index) { return Builder( builder: (rowContext) => widget._readOnly ? buildIcon(context, index + 1) : buildStar(rowContext, index + 1), ); }), ), );
Remove align
return Row( mainAxisSize: MainAxisSize.min, children: List.generate(widget.maxRating, (index) { return Builder( builder: (rowContext) => widget._readOnly ? buildIcon(context, index + 1) : buildStar(rowContext, index + 1), ); }), );
Rating bar is has widget wrapper align, which makes it always align center. Removing align widget fix the issue.
Before removing align
Fix
Remove align