skip to Main Content

how to get snapshot all in an array flutter firebase cloud

I am trying to get all of the data info. in my firebase cloud firestore but am still struggling with the code: StreamBuilder<DocumentSnapshot?>( stream: FirebaseFirestore.instance .collection("groups") .doc(groupId) .snapshots(), builder: (context, snapshot) { return GridView.builder( gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( crossAxisCount: 2, ),…

VIEW QUESTION

Visual Studio Code – how can i solve flutter error The bundle identifier of the application could not be determined

I have flutter project and i used visual studio code it ran android but doesn't run IOS debug console saw me error Unable to install /Users/a/Desktop/xeta-flutter-main/build/ios/iphonesimulator/Runner.app on A2DF75F6-E581-47AE-89FB-2875BBFFB2A8. This is sometimes caused by a malformed plist file: ProcessException: Process exited…

VIEW QUESTION

Flutter firebase: Bad state: field does not exist within the DocumentSnapshotPlatform

I'm getting this error: Bad state: field does not exist within the DocumentSnapshotPlatform with the following code: static List<Report?> reportListFromSnapshot(QuerySnapshot snapshot) { return snapshot.docs.map<Report?>((report) { return Report( type: report['type'], reason: report['reason'], reportId: report['id'], chat: (report['chat'] == null) ? null :…

VIEW QUESTION
Back To Top
Search