[Flutter] Flexible the Widget height to available space
2024-08-27 21:26:22
Let's say you set widget height to 200, but to different screen, there might not be enough space for the widget to display, in this case, you can use Flexible widget:
Flexible(
child: Hero(
tag: 'flash',
child: Container(
height: 200.0,
child: Image.asset('images/logo.png'),
),
),
),
It will display enough space for Widget which it wraps. Save space for other Widgets.
最新文章
- python-study1 in hubei
- [转]save all TWebbrowser Frame Sources?
- js 不同进制之间相互转换
- django框架代码基础
- 【转】c3p0详细配置
- <;!DOCTYPE>; DTD基础
- JQuery中html、append、appendTo、after、insertAfter、before、insertBefore、empty、remove的使用
- 《Play for Java》学习笔记(五)Form
- C++学习笔记之继承
- ios开发——实用技术篇Swift篇&;录音
- PAT 1057. Stack (30)
- Ubuntu 12.04安装PPTP
- arcpy批量打印地图
- Linq 集合操作
- Realm数据持久化方案的简单介绍和使用(二)
- 分析Android-Universal-Image-Loader的缓存处理机制
- 简说raid1 raid2 raid5 raid6 raid10的优缺点和做各自raid需要几块硬盘
- Vue导出json数据到Excel表格
- JMeter:Dashboard Report自动生成测试报告的巧用和避坑
- Python NumPy学习总结