如下图,这种写法下可滚动Widget显示一片空白,编译能通过。
异常写法方法一:
在Column中,再多使用Expanded包裹可滚动Widget,即可正常显示。
生效写法方法二:
ListView/GridView的shrinkWrap改为true值(默认false)。
如下图,这种写法下可滚动Widget显示一片空白,编译能通过。
异常写法在Column中,再多使用Expanded包裹可滚动Widget,即可正常显示。
生效写法ListView/GridView的shrinkWrap改为true值(默认false)。
本文标题:[Flutter]解决ListView/GridView作为Co
本文链接:https://www.haomeiwen.com/subject/gaxdkqtx.html
网友评论