How to combine two streams where the second depends on the first?

I'm building an app where a <code>Document</code> has a <code>DocumentTemplate</code> which belongs to a <code>DocumentFamily</code>. I'm working on the basic C...

how to create instances of StreamBuilder&lt;UserModel&gt;

I have this part in my code that I want to repeat throughout the project and I wish to just be able to call this function elsewhere, but the problem is that you need t...

flutter unnecessary statement on call to stream cancel

I have flutter code that creates a stream and cancels the stream during the dispose: <pre class="lang-dart prettyprint-override"><code> @override void dispose()...

How can I set up a Stream for a subcollection in Firestore?

I have a Firestore database with the following structure: usersCollection => user1 => productsHeldCollection => product1, product2, ... I can set up a...

Bloc pattern does not show newly added user to sqflite on screen

I am using <code>sqflite</code> database to save user list. I have user list screen, which shows list of user and it has a fab button, on click of fab button, user is...

StreamBuild: stream, calling a method that returns a Firestore Stream does not retrieve data until update

I'm hoping that someone can explain why there is different in behavior when explicitly calling <em>Firestore.instance.collection('data').snapshots()</em> vs calling a...

Flutter &amp; Firebase: How to check if an item exists inside of an array within a Firebase document

<a href="https://i.stack.imgur.com/2aL80.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2aL80.png" alt="img_firebase" /></a> I'm trying to w...

Could not find a Provider - Flutter

I want to provide a stream to my DecksList widget, so I initialized a provider in MyApp. It throws a ProviderNotFoundError. What can be a reason for that behavior ?</p...

StreamBuilder is not showing data from firestore

I am using streambuilder to display snapshot data but it is not displaying. The screen is just blank but When I use the future builder with get() methode it display t...

Preview file from memory in flutter windows app

Is there a way to preview/open with the default app, a file from memory without creating a temporary file in the disc, on a Flutter Windows Desktop app? (One ex...

What is the difference between Sink and Stream in Flutter?

The Google I/O 2018 <a href="https://www.youtube.com/watch?v=RS36gBEp8OI&amp;t=1663s" rel="noreferrer">video</a> about Flutter explains how to use Dart streams to mana...

How to fix - The body might complete normally causing null to be returned --FLUTTER

I am using a stream builder to fetch some data from Firebase but it's giving me an error <blockquote> The body might complete normally causing 'null' to b...

How do I create Flutter stream builder?

I have an updateDatabase function that retrieves the data from the Firebase Real-Time Database and saves it in the shared preferences ... I put this functi...

is there a better way to write a document stream builder?

Is there a better way to write this code? The application is about jobs and job applications. Each job can have multiple job applications. if the job is...

Does Flutter StreamBuilder work for widgets further down the widget tree?

I have placed the streambuilder at the top of the widget tree to listen to a stream. If the stream has data and the data contains A, it will return Apage() as shown in...