当前位置:网站首页>Flutter development: a way to solve the problem of blank space on the top of listview
Flutter development: a way to solve the problem of blank space on the top of listview
2022-07-05 09:47:00 【Third shopkeeper 666】
Preface
stay Flutter In development , Developers are interested in ListView The use of components is no stranger , Because regular business requirements will basically involve lists or slides , It is necessary to use ListView. About ListView Regular use of , Generally, you can find the corresponding API, There is not much here . But for some uncommon uses, we still need to know , Then this blog post will share about solving ListView One of the common problems in the use of :ListView Top blank question , Easy to read and use .
describe
stay Flutter in ListView There will be blank problem at the top by default , Will see ListView There is a little blank area on the head , That's because of dang ListView No peace AppBar When used together , The head will have a padding, Then I want to get rid of this padding, Then use MediaQuery.removePadding hold ListView Wrap it , So you're going to have to take ListView As MediaQuery.removePadding Sub components of .
Figure displaying the blank question
边栏推荐
- 【两个对象合并成一个对象】
- 单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
- [sourcetree configure SSH and use]
- STM32 simple multi-level menu (array table lookup method)
- 项目实战 | Excel导出功能
- LeetCode 31. Next spread
- What should we pay attention to when entering the community e-commerce business?
- 代码语言的魅力
- LeetCode 496. 下一个更大元素 I
- MySQL does not take effect in sorting string types
猜你喜欢
OpenGL - Lighting
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
7 月 2 日邀你来TD Hero 线上发布会
百度智能小程序巡检调度方案演进之路
[listening for an attribute in the array]
OpenGL - Coordinate Systems
oracle 多行数据合并成一行数据
Charm of code language
Principle and performance analysis of lepton lossless compression
Unity skframework framework (24), avatar controller third person control
随机推荐
tongweb设置gzip
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
代码语言的魅力
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
What are the advantages of the live teaching system to improve learning quickly?
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
Unity SKFramework框架(二十三)、MiniMap 小地图工具
A detailed explanation of the general process and the latest research trends of map comparative learning (gnn+cl)
First understanding of structure
What should we pay attention to when developing B2C websites?
[sorting of object array]
Community group buying has triggered heated discussion. How does this model work?
Principle and performance analysis of lepton lossless compression
LeetCode 496. Next larger element I
[how to disable El table]
Cross process communication Aidl
90%的人都不懂的泛型,泛型的缺陷和应用场景
Online chain offline integrated chain store e-commerce solution
Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)
Apache DolphinScheduler 系统架构设计