skip to Main Content

Multiple Firestore queries for a single Flutter screen, reg

I have to query different firestore collections from a single flutter screen. A sample looks like final membersRef = db.collection("members").doc(memberId); final noOfEventsRef = db.collection('events').where('year', isEqualTo: thisYear).count(); final myAttendance = db.collection('events').where('year', isEqualTo: thisYear).where('attendees', arrayContains: widget.memberId).count(); final dailyQuoteRef = db.collection('daily-quote').doc('JVX9rjht1P6SK5rtg8'); So first…

VIEW QUESTION

Flutter setState method shows error while the function calling from another page

I have create a method for call bottom dialogue in flutter. But on that case setState method shows error when loading the bottom dialog... import 'package:chavara/src/utils/theme/app_fonts.dart'; import 'package:flutter/material.dart'; import '../utils/theme/app_colors.dart'; import 'basic_text.dart'; basicBottomSheet(BuildContext context, String heading) { int id =…

VIEW QUESTION
Back To Top
Search