class _RandevularState extends State<Randevular> {
DatabaseHelper dbHelper;
List<Randevu> tumRandevular;
@override
void initState() {
// TODO: implement initState
super.initState();
dbHelper=DatabaseHelper();
tumRandevular=List<Randevu>();
}
@override
Widget build(BuildContext context) {
return FutureBuilder(
future:dbHelper.randevuListesiGetir() ,
builder: (context,AsyncSnapshot<List<Randevu>> snapshot){
if(snapshot.connectionState==ConnectionState.done){
tumRandevular=snapshot.data;
print("data"+snapshot.data.toString());
}else if(snapshot.connectionState==ConnectionState.waiting){
print("waiting");
}else{
print("error");
}
},
);
}
}
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/97b72621-a15a-43d0-a1cc-114b2d54d457%40googlegroups.com.