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 top padding in ListView #2

Closed
kangsudal opened this issue Oct 30, 2019 · 1 comment
Closed

Unexpected top padding in ListView #2

kangsudal opened this issue Oct 30, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@kangsudal
Copy link
Owner

책장 리스트 listview.builder로 만들기

Nested ListView:
https://www.youtube.com/watch?v=1LGKZsff8bQ
보며 ListView 안에 ListView.builder로 책장목록을 만들어주었는데, top 부분에만 여백이 너무 커지는 이유가 궁금했다.

photo_2019-10-30_14-48-56

flutter/flutter#14842 (comment)

@kangsudal kangsudal added the enhancement New feature or request label Oct 30, 2019
@kangsudal
Copy link
Owner Author

kangsudal commented Oct 30, 2019

child: ListView.builder(
          **padding: EdgeInsets.zero**,
          itemBuilder: (context, index) {
...

또는

        child: **MediaQuery.removePadding(
          context: context,
          removeTop: true,**
          child: ListView.builder(
            // padding: EdgeInsets.zero,
            itemBuilder: (context, index) {

photo_2019-10-30_15-17-17

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

No branches or pull requests

1 participant