Repository navigation
CircularProgressIndicator draws outside of its bounds #3282
Description
Activity
- addedframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
on Apr 12, 2016 - addedp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages
on Sep 12, 2017 When drawing wide lines with Canvas x,y correspond to the center of the line. Perhaps CircularProgressIndicator isn't taking this into account.
- modified the milestones: This milestone has been deleted, This milestone has been deleted
on Jan 7, 2020 - addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on May 29, 2020 Any clues as to how this could be fixed? I can try to contribute, if anyone has any ideas about what could potentially be causing this could help
The fix is probably to pad the widget with half the stroke width on each side, if we want to do it. However, it would likely be quite breaking since by now lots of apps depend on the exact behavior. Is it worth making this optional, or should we just not do it?
However, it would likely be quite breaking since by now lots of apps depend on the exact behavior. Is it worth making this optional, or should we just not do it?
@Hixie Can we identify if any internal tests or Golden tests rely on this?
With #125945, supporting this will not be a breaking change. It takes the same design of
BorderSide.strokeAlignwhich defaults to.centersame as the current situation.This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on May 24, 2023
It appears that the stroked outline is just outside of its constraint rect. This makes it difficult to precisely control CircularProgressIndicator's size. I think it would be easier to manage this widget if enclosing it in a SizedBox assured that nothing would be drawn outside the box.