-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
ListTile is not clipped when filled with a color. #94785
Comments
@MalcolmMielle |
Sure thing! Flutter doctor -v:
The behavior is seen on Linux (using Fedora 35) |
Thanks for the details. Using the sample code provided and also with a below code snippet, the listTile corners are not clipped out of the box, although there are workaround / solutions using
stable, master flutter doctor -v
|
While using a Card enables the clipping of the ListTile, it doesn't work for other widget like InkWell. Edit: nevermind, the solution then is to use #24225 (comment) |
With that solution, can this issue be closed as resolved ? |
Using Card is a solution to the problem for now. I don't now enough to know if there is a limitation compared to being able to use ClipRRect instead. |
ListTile uses Ink so if you want to clip it the new examples added to https://master-api.flutter.dev/flutter/material/Ink-class.html explain how to do it and why it can seem like clip does nothing at first. The solution here is to wrap the tiles in a Material. |
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 |
Steps to Reproduce
In both of those programs, the ListTile is not clipped correctly:
Expected results:
The green ListTiles or the Column containing them are clipped.
Actual results:
Nothing is clipped:
The text was updated successfully, but these errors were encountered: