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

Unexpected padding in ListView results off position of item #74

Closed
lzhuor opened this issue May 25, 2020 · 2 comments · Fixed by #103
Closed

Unexpected padding in ListView results off position of item #74

lzhuor opened this issue May 25, 2020 · 2 comments · Fixed by #103

Comments

@lzhuor
Copy link

lzhuor commented May 25, 2020

Problem

For Scaffold without an app bar, ListView has an inner padding on the top which results item positions are off. Related to Flutter Issues #14842

image

Solution:

Add MediaQuery.removePadding() for ListView.builder in numberpicker.dart.

@pbouttier
Copy link

Same problem in my side.

I have fixed it by adding a SafeArea on top of my widgets

@lzhuor
Copy link
Author

lzhuor commented May 26, 2020

@pbouttier Are you developing it on an iPhoneX and above? SafeArea didn't solve the problem for me when it's on iPhone 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants