Using BLoCs and Streams to update the UI

All of the plumbing of the app is now complete. We just need to add the user interface in order to interact with the BLoC and show data to the user.

The main screen of the app will contain the list of todos in a ListView. The screen will look similar to the following image:

In this section, we will complete the remaining steps required to interact with a BLoC from the user interface:

  1. We'll create an instance of the BLoC.
  2. Then we'll include the UI in the StreamBuilder, which is the object you use when showing a stream.
  3. Next, we'll add events to the sink for the changes to the data.
  4. Finally, we'll override ...

Get Flutter Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.