I tried to use nested Listview builder the data can be retrieved but it doesn't appear in the ui, I'm confused I've been looking for it but still haven't found the right solution, this my code:
Widget _buildViewDataReport(BuildContext context, List<GetReport>listReport){
return ListView.builder(
itemCount: listReport.length,
itemBuilder: (context, index){
return Container(
width: double.infinity,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
_getHeader(listReport[index].header),
_buildWidgetSizedBox(20),
_getDataBody(listReport[index].data),
],
),
);
}
);
}
Widget _getHeader(List<Header>listHeader){
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Text('INI HEADER TIDAK MASUK LISTVIEW.BUILDER'),
ListView.builder(
shrinkWrap: true,
scrollDirection: Axis.vertical,
physics: NeverScrollableScrollPhysics(),
itemCount: listHeader.length,
itemBuilder: (context, index){
return Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text('${listHeader[index].label} : ${listHeader[index].value}')
],
),
);
}
),
],
);
}