Learning how streams interact with your app can help you code more effectively. In this video, take a deeper dive into the concept of streams.
for data that might be updated at any moment in time … so that we can subscribe to the stream by awaiting for it. … And then once new data does come through, … we can get some code to be triggered … and we can get access to that new data. … Now, coming back to Flutter land, however, … we need to convert this data that we're getting back … to show our chat messages is … to show them all inside a column. … So before doing anything fancy, … I'm simply going to display my chat messages … by creating a column with a list … of Text widgets as its children. … Here's what our appl looks like right now, … and here's what we're aiming for. … This is what our screen with that column … of Text widgets will look like by the end of the lesson. … But here's the rub, our .snapshots method gives us a stream, … so we need something that can handle a stream … and will create a list of Text widgets for us. … But it doesn't just need to create our widgets. … It needs to update our widgets … every time a new chat message comes into the stream. …
This course was created by London App Brewery. We are pleased to host this content in our library.
- Refactoring routes
- Customizing Flutter animations
- Setting up a Firebase project
- Authenticating users with FirebaseAuth
- Streaming data from Firestore