Slide 25
Slide 25 text
cloud firestore
void _getDocument(List list) async {
QuerySnapshot snapShot =
await Firestore.instance.collection('memo').getDocuments();
setState(() {
snapShot.documents.forEach((DocumentSnapshot ds) {
SizedBox box = new SizedBox(
width: 300.0,
height: 50.0,
child: new Card(child: new Text(ds.data['text'])),
);
list.add(box);
});
});
}
lib/main.dart