How to manage application states using inherited widgets | Workshop

preview_player
Показать описание
Learn how to use inherited widgets to implement your own state management solutions. With a sample flutter application, we go through the steps needed to implement a state management system.

This lab requires knowledge of building the Flutter UI using basic stateless and/or stateful widgets.

Resources:

Speaker: Chun-Heng Tai

Watch more:

#GoogleIO #Flutter

product: Flutter - General; event: Google I/O 2021; fullname: Chun-Heng Tai; re_ty: Livestream;
Рекомендации по теме
Комментарии
Автор

10:32 Start
13:46 AppState completed
19:35 AppStateScope implemented
21:03 AppStateWidget start
26:40 AppStateWidget implemented
28:46 Use it in you app

I hope this helps 👍

codewithmaher
Автор

Dude, I need to get a new pair of eyes after this video.

DebabrataAcharya
Автор

Great video if you want to build a package that needs state without introducing a dependency on another state management package like provider or riverpod.

sanderroest
Автор

Easy to understand and well structured workshop. Thanks a lot for these valuable insights on state management in Flutter!

lucasmullner
Автор

Extremely wanted this workshop, thankyou Flutter 💜

prashantmaharana
Автор

Such a valuable topic, and an excellent example-walkthrough. Thank you!

markh
Автор

it will be very cool and important to have comments // for each line so even a new comer can read and follow through

manishkl
Автор

please, next time make zoom into the code to see it better, i tried to see the video on my phone and it was a bad desicion

haroldpepete
Автор

Is InheritedNotifier more efficient with the same pattern? Create a custom valueNotifier around the data class and without the StatefulWidget that exposes the APIs. That would be my guess I'm not sure yet, though..

jilmarxa
Автор

How does this compare to using Riverpod, advantages and disadvantages?

nobutaka
Автор

I really hope the dartpad code sample could be updated with more intuitive comments and walk through to decoupled the excercise from this video.

CaptainOgres
Автор

Velocityx package implements the same functionality in simplier form and the bioler plate code is also less, but it is also good to know the behind the scenes

building_in_public
Автор

How can i access the source code of this exercise? Please help me.

zohaibmunir
Автор

Please explain the reason for using two dots in "_itemsInCart..add(id)" within _handleAddToCart(String id).

The same question applies to "_itemsInCart..remove(id)" within _handleRemoveFromCart(String id).

Using only one dot causes an error: A value of type 'bool' can't be assigned to a variable of type 'Set<String>'

Fine, but WHAT, exactly and precisely, is the meaning of the two dots in this context?

Is this a shortcut for some kind of a cast?

Obvioously, there's something VERY meaningful going on here. Unfortunately, searching the Dart documentation doesn't produce any meaningful information for "two dots" (which are used in cascades with this Note: Strictly speaking, the “double dot” notation for cascades isn’t an operator. It’s just part of the Dart syntax.)

So, the “double dot” notation for cascades inhabits a different context than the context of your _handleAddToCart(String id) and _handleRemoveFromCart(String id).

Please clarify.

Thanks.

panchoyarco
Автор

I have a question, in minute 35:02 when you pass context as argument to _buildProductTile function, the context if avaliable in entire widget, you don't need to pass as argument, i'm wrong or not?

haroldpepete
Автор

What I don't understand is that why need first build an app the way it is not practical. But thank you :)

stepanzarubin
Автор

переводчик яндекс браузера его НЕ ПОНИМАЕТ ! УВОЛЬТЕ ЕГО

Lgwin