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

Gaps between items in Column and ListView #58951

Closed
mehmetf opened this issue Jun 8, 2020 · 3 comments
Closed

Gaps between items in Column and ListView #58951

mehmetf opened this issue Jun 8, 2020 · 3 comments
Labels
customer: money (g3) f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Comments

@mehmetf
Copy link
Contributor

mehmetf commented Jun 8, 2020

b/158072646

There are small gaps between consecutive items in Column / ListView / CustomScrollView.
When draw a black background behind a list / column of red tiles, there are some black gaps between items in the list / column. It is expected that the list should be all red with no gaps in between.

On mobile, the gaps are always visible. Happens on debug, profile and release build.
On dartpad.dev/flutter, the gaps are only visible at some scrollOffset.

Example code: https://dartpad.dev/5239567d3d7c2a0da8fb1dc1fdb5eb83
Attached screenshots are taken on dartpad and on Pixel 1.

image

@mehmetf mehmetf added f: scrolling Viewports, list views, slivers, etc. customer: money (g3) labels Jun 8, 2020
@HansMuller HansMuller added the framework flutter/packages/flutter repository. See also f: labels. label Jun 8, 2020
@HansMuller
Copy link
Contributor

This looks like a known problem with antialiasing and mapping from logical pixels to device pixels. There's an open issue for a documentation fix: #14288

More info about the problem can be found here:
#14288 (comment)
#17084 (comment)
#15035 (comment)

@mehmetf
Copy link
Contributor Author

mehmetf commented Jun 8, 2020

This is great context. Thanks Hans.

@mehmetf mehmetf closed this as completed Jun 8, 2020
@github-actions
Copy link

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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer: money (g3) f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

No branches or pull requests

2 participants