my images (from api) don't render at first load unless I scroll down and back to top again
here is my code structure
CustomScrollView(
slivers: [
SliverList(
delegate: SliverChildBuilderDelegate(_, index) {
return Column(children:
[
// SLIVERBUILDER INDEX
Text(somedata[_index]),
// MY IMAGE BUILDER
Container(child: ListView.builder(itemBuilder: (_, int index){
return Image.network(arrayOfImages[index]);
}))
]
);
}),
]
)
Try these:
SliverList( delegate: SliverChildBuilderDelegate( (context, index) { return Container( // warp with container height: 450, child: Column(children: [ // SLIVERBUILDER INDEX Text('title'),
// MY IMAGE BUILDER Expanded( // add this widget child: ListView.builder( itemCount: arrayOfImage.length, // add this line
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.