Pragmatic State Management Using Provider (The Boring Flutter Development Show, Ep. 24)

Flutter · 72K views · 2019 · 1:05:28

Open on YouTube

Software architecture & designWeb developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering Flutter state management questions, especially to show how Provider simplifies code compared with BLoC.

Recommended by 3 people across 3 different months, 2019 to 2020.

What it is

An hour-long episode of the Flutter team's Boring Show in which Filip and Matt explain the Provider package for Flutter state management. They live-refactor the Hacker News Flutter app, replacing BLoC with Provider.

What people said

Recommends Mohamed Elrashid · 2019-09 · Stack Overflow · on “Controlling multiple widgets of same type while avoiding a list of GlobalKeys”

look good, you can also use *** provider [LINK] *** or *** rxdart [LINK] *** , i recommand *** provider [LINK] *** , here some videos *** Pragmatic State Management in Flutter (Google I/O'19) - YouTube [LINK] *** & *** Pragmatic State Management Using Provider (The Boring Flutter Development Show, Ep. 24) - YouTube [this video] ***

Recommends skjagini · 2019-11 · Stack Overflow · on “Flutter State Management (BloC): Stateless vs Stateful widget”

You write Provider classes, and all the state is managed in a central place specific to a type, it doesn't get mixed up. Look into Flutter channel on Youtube, where they convert the app from Bloc to Provider, and the amount code/complexity reduction you get. [this video]

Recommends Andrey Gordeev · 2020-03 · Stack Overflow · on “Flutter: how to get parent widget variable?”

I want the color to change based on some logic around the count variable, how can I access the count variable from within the TestButton widget? E.g. if count is a multiple of three then the button should be red, otherwise blue. You need to pass count down to the child and let the child to build itself based on that value. Don't try to access the parent widget. In declarative programming you can only update states and rebuild trees. Here's a good video about state management in Flutter: [this video]