I have used null safety libs. Now am getting this problem. Please see the screenshot. Even after adding a null check, it's not going.
body: FutureBuilder(
future: allPerson(),
builder: (context, snapshot) {
if (snapshot.hasError) print(snapshot.error);
return snapshot.hasData
? ListView.builder(
itemCount: snapshot.data.length,
itemBuilder: (context, index) {
List list = snapshot.data;
return Card(
child: ListTile(
title: Container(
width: 100,
height: 100,
child: Image.network(
"http://192.168.1.101/image_upload_php_mysql/uploads/${list[index]['image']}"),
),
subtitle: Center(child: Text(list[index]['name'])),
),
);
})
: Center(
child: CircularProgressIndicator(),
);
},
),
Thanks.