Flutter: Container or SizedBox with Dynamic Height
you just have to use property shrink wrap true
it will auto adjust the height
Container(child:ListView.separated(
itemCount:1
shrinkWrap: true,
itemBuilder: (context, index) {
return Container();
}
),
SizedBox(child:ListView.separated(
itemCount:1
shrinkWrap: true,
itemBuilder: (context, index) {
return Container();
}
)
Comments
Post a Comment