Simple State Management using Streams - Flutter in Practice 47

preview_player
Показать описание
Today, let's talk about streams and how they can be used to manage the application state. Streams are a built-in feature of Dart. They are used to interact with a Firebase database or they can help us control the interactions with external APIs in an elegant way. If streams are already required for such common scenarios, why don't we use them everywhere, even to manage the local state? It'd be simpler and easier to maintain to use just a single approach across the entire application. In this episode I will show you how we can achieve that in our Flutter application.

Flutter in Practice is a free programming course that teaches how to write a mobile application using Flutter framework and Dart programming language. Instead of teaching concepts and ideas in both Flutter and Dart, this course showcases a process of building an actual, mobile application. Our goal is to create an email client that supports the JMAP protocol.

Flutter from A to Z is 12-week course about Flutter (work-in-progress). Subscribe for updates:

#flutter #streams #tutorial
Рекомендации по теме
Комментарии
Автор

oooh, Self and Smalltalk. I used the ST80 image in 1981, running on the Tektronix Magnolia. That was my introduction to OO. Then Apple Smalltalk which became Squeak Smalltalk, and now I feel like I've come back home with Dart and Flutter. (Dart got cacades right! Thank you Gilad for never having to type "yourself" again!)

RandalLSchwartz
Автор

I'm very happy that you're gonna create another Flutter course. Your free content is so far the most valuable content on Flutter I found on the Internet. Following the same project from beginning to end is really helpful to understand and apply the concepts instead of building a lot of small projects. Looking very much forward to the next course.

NathanQueija
Автор

I agree with you, I lol'd, when you said trick... they keep stating use Provider for state mgmt.. I retort Provider isn't state mgmt, Provider is data provision, injection if you will but not the DI kind. Although when coupled with State Notifier is does a good job or providing a well defined state interface/facade. I enjoy watching your videos! Every decent developer should understand you are very busy with dev work, and producing video content requires time!!

leonelmateus
Автор

Thank you, Jakub!
Very useful extensions.
And nice explanations!

maxeem
Автор

Looks good.
Pls do one session for - Infinite scroll with rx dart.

dheenaindian
Автор

How does this differ from BLoC? It seems very similar, though with less boilerplate and not hiding the streams behind a library.

THEMithrandir
Автор

Do you intend to publish the course on udemy?

vitorvidal
Автор

I heard the joke as "there are only two hard things in computer science: cache invalidation, naming things, and off-by-one-errors."

RandalLSchwartz
Автор

This package looks like it was inspired by GetX.
You'd better talk about him too.

innovationsapps
Автор

the syntax looks like provider.
agree with your statement. 3 months course won't make you advance programmer. you can't cover the language features, ui, database, testing, debugging within 3 months, unless you have photographic memory.
by the way, those companies you mentioned. will they hire remote devs?

dhanniekristanto