经典错误 如图:

提示:Cannot hit test a render box with no size.
超过了空间导致的崩溃,原因是我的Column里面的子控件wrap超出父组件Column屏幕了,解决办法是在warp外面包裹一个Expanded

Expanded的意思是在父组件可用范围内内填充父组件剩余空间。
经典错误 如图:
提示:Cannot hit test a render box with no size.
超过了空间导致的崩溃,原因是我的Column里面的子控件wrap超出父组件Column屏幕了,解决办法是在warp外面包裹一个Expanded
Expanded的意思是在父组件可用范围内内填充父组件剩余空间。
本文标题:Flutter 超出空间导致崩溃问题
本文链接:https://www.haomeiwen.com/subject/ltnfddtx.html
网友评论