skip to Main Content

I want to retrieve data from a Firestore collection group using Flutter, but I'm encountering an error and unable to retrieve it

In the Flutter app, I'm trying to retrieve data stored in a Firestore subcollection using this method. Stream<List<DocumentSnapshot<Object?>>> fetchNearbyData({ required LatLng location, }) { final collectionReference = FirebaseFirestore.instance .collectionGroup(`postData`); return GeoFlutterFire() .collection(collectionRef: collectionReference) .within( center: GeoFlutterFire().point( latitude: location.latitude, longitude: location.longitude,…

VIEW QUESTION

Flutter – Why my output have no Image and heading in all red with double yellow underline along with black background?

import 'package:flutter/material.dart'; class SiginupPage extends StatefulWidget { const SiginupPage({super.key}); @override State<SiginupPage> createState() => _SiginupPageState(); } class _SiginupPageState extends State<SiginupPage> { @override Widget build(BuildContext context) { return SafeArea(child: Container( width: double.infinity, height: MediaQuery.of(context).size.height, padding: const EdgeInsets.symmetric(horizontal: 30,vertical: 30), child: Column( mainAxisAlignment:…

VIEW QUESTION

Flutter: Is there a good tutorial on Offset?

I want to learn more about offset, I googled and found very few tutorials. I found this tutorial https://blog.logrocket.com/understanding-offsets-flutter/ but is a bit complex. I learned somewhere that it was expressed from the center of the screen Offset(0,0) (with Offset(dx,dy)…

VIEW QUESTION
Back To Top
Search