skip to Main Content

Error reading Firestore data from flutter

getData() async{ var result = await FirebaseFirestore.instance.collection('users').doc('documentId').get(); print(result['']); } @override void initState() { getData(); super.initState(); } In, if the value in result[''] is aa or 1aa, the data can be read, but if it is 1.aa, it cannot be read.…

VIEW QUESTION

Flutter – How to refresh the data table after data appended

How to refresh the data table after data appended List results = []; DataRow _getDataRow(index, data) { return DataRow( cells: <DataCell>[ DataCell(Text(results[index]['item_code'])),//add name of your columns here DataCell(Text(results[index]['item_name'])), DataCell(Text(results[index]['rate'])), DataCell(Text("10")),//add name of your columns here DataCell(Text("here")), ], ); }

VIEW QUESTION

Flutter conditional time statement

I want to show up greeting text something like (Goodmorning, Good afternoon, Good evening) in a text widget between the times of 6 hours intervals in flutter I've been trying to come out with how to...but still nothing so far.…

VIEW QUESTION
Back To Top
Search