当前位置:网站首页>flutter 如何去掉listview顶部空白的问题
flutter 如何去掉listview顶部空白的问题
2022-06-10 22:29:00 【氤氲息】
参考
解决listview顶部空白问题。用MediaQuery.removePadding包裹住。设置removeTop:true。
MediaQuery.removePadding(
removeTop:true,
context:context,
)
MediaQuery.removePadding(//解决listview顶部有个空白的问题。
removeTop: true,
context: context, child: ListView.builder(
itemCount: searchModel?.data?.length ?? 0,
//如果他为空。或者他为空取默认值0
itemBuilder: (BuildContext context, int position) {
return _item(position);
}))
边栏推荐
- MySQL related -0416
- Dell r730 RAID5 installation server 2016 (disk larger than 2t)
- PwnTheBox,Web:hello
- VS的常用设置
- The data file insurance CSV contains 1338 observations, that is, the registered beneficiaries of the insurance plan and the characteristics that represent the characteristics of patients and the total
- 34. find the first and last positions of elements in the sorted array - binary search, double pointer
- 字蛛(font-spider)教学——ttf/otf字体文件压缩
- 0223 summary
- 嵌入式软件开发中的2种调试技术
- Is it safe to open an account in Shanghai Stock Exchange?
猜你喜欢

HALCON联合C#检测表面缺陷——仿射变换(二)

项目实训13——界面补充

Unity 脚本无法显示C#源码的中文注释 或者VS创建的脚本没有C#源码的注释

执行Oracle的SQL语句报错【ORA-00904: “CREATETIME“: 标识符无效】、【ORA-00913: 值过多】解决办法

300题 线代第一讲行列式

Ma8601 pin √ pin replaces Tang Ming fe1.1s without changing the circuit board | perfectly replaces fe1.1s scheme

mysql 表机制

Leetcode 501: mode dans l'arbre de recherche binaire

【视频】KMEANS均值聚类和层次聚类:R语言分析生活幸福指数可视化|数据分享

PwnTheBox,Pwn:tutorial1
随机推荐
LeetCode+ 21 - 25
34. 在排序数组中查找元素的第一个和最后一个位置-二分查找、双指针
LeetCode 501 :二叉搜索树中的众数
字蛛(font-spider)教学——ttf/otf字体文件压缩
Sentinel
Laravel8 enables alicloud file upload
Openvp* integrated LDAP authentication
34. find the first and last positions of elements in the sorted array - binary search, double pointer
What are the common methods of object
判等问题:如何确定程序的判断是正确的?
mysql 表机制
OpenVP*整合ldap認證
PwnTheBox,Web:hello
项目实训10——对特定数据库的备份
Is it safe to open an account in Shanghai Securities?
第六章——分枝限界法
Data and information resource sharing platform (VII)
Is it safe to open a BOC securities account? Is the risk high?
C# Tryparse的用法
Ride the storm and explore the secret behind the open source of flyfish, a data visualization development platform!