1. Wrap ListView in Expanded
Column( children:2. Wrap ListView in SizedBox and give a bounded height[ Expanded( // wrap in Expanded child: ListView(...), ), ], )
Column( children:3. Use shrinkWrap: true in ListView.[ SizedBox( height: 400, // fixed height child: ListView(...), ), ], )
Column( children:[ ListView( shrinkWrap: true, // use this ), ], )
Komentar
Posting Komentar
penulis senang dengan adanya pembaca yang meninggalkan jejak. :)