skip to Main Content

Flutter – give `TextFormField` dynamic controller

I have a function which loads data to TextFormField from firebase . can we supply controller to the TextFormField created by following function. loadDataToTextFormField( QuerySnapshot mySnapshot, int index, String databaseField, String? bulletsAndNumberingType, TextStyle textStyle) { List getDataList = List.from(mySnapshot.docs[index][databaseField]); return…

VIEW QUESTION

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