How to get document snapshot where name in data map in collection in flutter

I am trying to get document snapshot by searching by recipe name and recipe name sore in data: <img src="https://i.stack.imgur.com/AVgUI.png" alt="Firebase Fire...

How to iterate through Flutter AsyncSnapshotDataSnapshot for FirebaseAnimated List?

I'm trying to iterate through my Firebase tree in order to populate a FirebaseAnimatedList. I need to use the key along with all the provided values. I'm assuming si...

How to get a DocumentSnapshot for a specific document out of a QuerySnapshot?

To make things simple, let's say I've got two screens: <ul> <li><code>StoriesListScreen</code></li> <li><code>StoryDetailsScreen</code></li> </ul> To populate...

Trying to show data from Firebase Firestore

I am trying to show data from my Firebase Firestore for which I created a Crud File. I have tried different things in my body.dart file and I am continuously ge...

Get data from Stream class without using StreamBuilder

I want to get data from a Stream function without using StreamBuilder. How do I achieve this? Below is the function where I want to fetch data from. <pre class="l...

Flutter Navigator - How to pass DocumentSnapshot&lt;List&gt; to Detail Page?

I'm searching for a solution to pass my snapshot via Navigator or others to my Detail Page. <pre><code> class SoccerList extends StatelessWidget { @override Wi...

Short error when data is retrieved from Firebase

I am retrieving a document from Firebase and try to display this data in my application. The user clicked on an item and is forwarded to this page here. At the same ti...

What is the difference between existing types of snapshots in Firebase?

as I'm further progressing with my code and my coding experiences in Flutter. I've encountered different types of snapshots, while working with the Firebase API. I'm t...

passing dynamic strings to AppLocalizations.of(context)! in Flutter

right now Im working in App using Flutter and I have 4 different languages, I use json (arb files) for localization (translation) I need to pass different strin...

Flutter DocumentSnapshot - Error: A value of type Object? cant be assigned to a variable of type DocumentSnapshot

<pre><code>return StreamBuilder( stream: usersRef.doc(post.userId).snapshots(), builder: (context, snapshot) { if (snapshot.hasData) { DocumentSnapshot snap...

Flutter - Class QuerySnapshot has no instance method document

I am getting the following error: <blockquote> ════════ Exception caught by widgets library ═══════════════════════════════════════════════════════ ...

How to specify field for snapshot data in firebase-flutter

from the previous question that I have <a href="https://stackoverflow.com/questions/67329011/send-notification-over-device-using-fcm-and-flutter">posted</a>, I already...

StreamBuilder error when data deleted from Firestore - How to catch the error

I am trying to use a stream that listens to updates to a single document but also handles that document being deleted (or not existing until data is entered). However,...

type Null is not a subtype of type DatabaseNotes in type cast

The problem lies in the FutureBuilder widget section. I am trying to get the data from a snapshot in a FutureBuilder, but I get an error as 'type 'Null' is not a subty...

snapshot returns always empty data in StreamBuilder flutter

So, I'm facing this problem: the '<strong>snapshot</strong>' doesn't get any data from Firestore in <strong>StreamBuilder</strong> in Flutter.$ Here is the code...