skip to Main Content

flutter firebase: Bad State

I'm having trouble with my code. It's always returning Bad state: field does not exist within the DocumentSnapshotPlatform. I don't know what I did wrong. It used to work but after sometime and then I started getting this error. I…

VIEW QUESTION

i have a problem loading a code in flutter. any time i run it , it says FlutterError

i tried to wrap my cintainer with a sizedBox but it threw an error. i honestly don't know what to do // ignore_for_file: prefer_const_constructors, file_names, prefer_const_literals_to_create_immutables, use_full_hex_values_for_flutter_colors import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class RowItemsWidget extends StatelessWidget { const RowItemsWidget({super.key}); @override Widget…

VIEW QUESTION

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