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

是否可以放开ListView.builder的padding属性 #7

Closed
pcccccc opened this issue Apr 11, 2019 · 4 comments
Closed

是否可以放开ListView.builder的padding属性 #7

pcccccc opened this issue Apr 11, 2019 · 4 comments

Comments

@pcccccc
Copy link

pcccccc commented Apr 11, 2019

最近在做项目时遇到了一个问题:
在不使用AppBar时展示listView需要将padding: EdgeInsets.only(top: 0) 顶部才不会有空白.

图片

@Realank
Copy link
Owner

Realank commented Apr 11, 2019

如果你没有加safearea,那么上面的padding是ListView自己加的,当向上滚动的时候,padding里也会显示list的内容,我们最好还是维持ListView自己的特性,如果你不想要这个padding,那么请用你说的这个方法来规避。
不过话说回来,你的app不需要躲避刘海部分吗

@Realank Realank closed this as completed Apr 11, 2019
@pcccccc
Copy link
Author

pcccccc commented Apr 11, 2019

请问使用flutter_section_table_view时应该如何修改SectionTableView的padding,因为一个特殊的需求我需要隐藏appbar。

@Realank
Copy link
Owner

Realank commented Apr 12, 2019

在SectionTableView外直接包住一个Padding如果不管用的话,建议fork一套代码到自己的名下,然后修改内部代码

@pcccccc
Copy link
Author

pcccccc commented Apr 12, 2019

在SectionTableView外直接包住一个Padding如果不管用的话,建议fork一套代码到自己的名下,然后修改内部代码

问题已经解决,感谢。

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

No branches or pull requests

2 participants