I have two list view. One is a wrapper of all the widgets in the view, the second one is a child of it. Here is the code:
ListView(
scrollDirection: Axis.vertical,
physics: AlwaysScrollableScrollPhysics(),
children: [
Container(
................
),
Container(
................
),
ListView.builder(
itemBuilder: (context, index) {
return Expanded(child: Column(children: [
Divider(
color: Colors.black12,
height: 20,
thickness: 1,
indent: 20,
endIndent: 0,
),
Row(children: [
Image.network(
"http://openweathermap.org/img/wn/[email protected]"),
Text(Utils.days[index + 1],
style: GoogleFonts.roboto(
fontSize: 16, color: Colors.white))
]),
]));
},
itemCount: 5,
scrollDirection: Axis.vertical,
)
]);
The two containers are visible. I can't see the items inside the second list view. There isn't any error in the console. I have no idea why is this happening.
ListViews - instead useCustomScrollViewshrinkWrap: truebelow second list view