shrinkWrap会使ListView的懒加载失效,全部行都会加载到内存中,如果行数太多,并且每行的图片也大,则会导致内存溢出而崩溃。
如果需要截ListView的全图,可以设shrinkWrap为ture。
如果Column中嵌套ListView,
ListView设置 shrinkWrap 为true,则ListView不能单独滚动了,只有随Column滚动。
shrinkWrap会使ListView的懒加载失效,全部行都会加载到内存中,如果行数太多,并且每行的图片也大,则会导致内存溢出而崩溃。
如果需要截ListView的全图,可以设shrinkWrap为ture。
如果Column中嵌套ListView,
ListView设置 shrinkWrap 为true,则ListView不能单独滚动了,只有随Column滚动。