I'm having this issue
im getting data from server and whenever the futurebuilder starts i get this error and nothing happens no data, in the server side everything is ok
: FutureBuilder( < Whats causing the error to be thrown
future: getAppointmentDetails,
builder: (context, snapshot){
if(snapshot.connectionState == ConnectionState.waiting){
return Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: Center(child: CircularProgressIndicator()));
}
else if(snapshot.connectionState == ConnectionState.none){
return Container();
}
else{
return Stack(
children: [
appointmentListWidget(doctorAppointmentDetailsClass.data), << stack when error thrown
],
);
}
},
),