-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add examples and troubleshooting comment for ClipRRect
#101907
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
Add examples and troubleshooting comment for ClipRRect
#101907
Conversation
|
@bleroux Looks like the doc check is not happy with this change. Can you take a look and fix that? |
dbe8601 to
7a3e1f2
Compare
gspencergoog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Just some documentation nits here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might add a comment here about why this FittedBox is necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment and replaced FittedBox with a more meaningful BoxConstraints.tight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// This example shows various [ClipRRect] applied to containers. | |
| /// This example shows various [ClipRRect]s applied to containers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// When [ClipRRect] is bigger than the child it contains, its rounded corners | |
| /// When a [ClipRRect] is bigger than the child it contains, its rounded corners |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// could be drawn not where expected. Make sure that [ClipRRect] and its child | |
| /// could be drawn in unexpected positions. Make sure that [ClipRRect] and its child |
Maybe describe in what way the location is surprising.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// ### Why my ClipRRect child doesn't have rounded corners? | |
| /// ### Why doesn't my [ClipRRect] child have rounded corners? |
7a3e1f2 to
6d310ca
Compare
gspencergoog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

Description
This PR adds two examples for
ClipRRect.First one to illustrate basic usage.
Second one to help troubleshooting round corners misplacement.
Related Issue
#93589
Tests
Adds tests for both examples
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.