Flutter Provider - State Management using PROVIDER ( A BLoC Alternative)

Flutter Provider - State Management using PROVIDER ( A BLoC Alternative)

RetroPortal Studio

5 лет назад

60,897 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@hammadulaziz1064
@hammadulaziz1064 - 12.01.2020 16:28

ChangeNotifierProvider<DownloadFile>(
builder:<=this builder has been deprecated in newer version
//for latest versions go with this one
create: (context) =>DownloadFile(),
child: instaInterface(),

),

Ответить
@mohamednizam5298
@mohamednizam5298 - 20.01.2023 07:32

At last a fantastic explanation on actual use of state management rather than showing pics of streams and rivers moving boats. Question - i am starting app thats “simple” but foresee could get more “complicated” features, can provider handle it or start now with bloc. Dont want to rewrite the codes later. Which state management is recommended by google?

Ответить
@dgrippo
@dgrippo - 16.09.2022 01:17

Great introduction to Provider. Read a lotabout it but this is concise and clear. One thing, I had to replace "builder" with "create" in:
...... return ChangeNotifierProvider(
create: (context) => WeatherInfo(),
child: Scaffold( ...

Ответить
@Ayrix06
@Ayrix06 - 23.12.2021 02:34

Best man

Ответить
@MdYousuf-gw2dn
@MdYousuf-gw2dn - 02.09.2021 19:29

make some tutorial about Overlay please

Ответить
@rohanlawande9134
@rohanlawande9134 - 25.02.2021 20:17

Nicely explained the concept man much appreciated!

Ответить
@milodude023
@milodude023 - 19.02.2021 18:43

Awesome tutorial about Providers! Quite nice to manage states! Thank you so much! Keep it up!

Ответить
@SagarSagar-ro3fj
@SagarSagar-ro3fj - 12.02.2021 08:08

what will hapen if there is another class called Stockinfo along with weather info? how to use builder in this case?

Ответить
@hk20092009able
@hk20092009able - 18.12.2020 10:45

It's better if we make public variable for this dynamic variable inplace of this big complycated circle

Ответить
@gauravthakkar802
@gauravthakkar802 - 11.11.2020 10:10

Provider is not a state management solution as said by Remi in his video
It only seeks to provide values deep inside the widget tree

Ответить
@abraiyan7984
@abraiyan7984 - 21.10.2020 04:25

In a job interview ... (Almost nailed it but then)
Recruiter: So, we use BLOC for all of our projects. You are familiar with it, right?
Me: GG. Um out.
(Just for fun no offense btw)

Ответить
@leithhobson
@leithhobson - 19.09.2020 22:07

Thank you for a really solid video!

Ответить
@Sanjay54251
@Sanjay54251 - 19.09.2020 09:54

Again nice video od my type and need this a lot

Ответить
@vidy9754
@vidy9754 - 06.09.2020 22:38

what if i have multiple weatherinfo objects, how do you differentiate inside of the consuming widget? how do you declare multiple notifier objects?

Ответить
@IncogTechBytes
@IncogTechBytes - 30.08.2020 08:31

do i have to use bloc if i use provider? (newbie question)

Ответить
@red010182
@red010182 - 24.08.2020 13:44

which one of these 2 approaches (property based vs consumer based) has better performance? Will property based approach leads to whole stateless widget be re-constructed when notification arrives?

Ответить
@Grovermol
@Grovermol - 12.08.2020 05:52

Thanks dude!! I 've finally understood provider, cheers

Ответить
@aravindc6946
@aravindc6946 - 11.08.2020 13:17

Perfect example and a good explanation, keep rocking!

Ответить
@wesleybarnes5376
@wesleybarnes5376 - 18.07.2020 23:58

You explained this so nicely, thanks dude, appreciate it.

Ответить
@guidoc3518
@guidoc3518 - 27.06.2020 01:26

My provider is working fine on debug mode. But when I released the app to stores, the changes are not working. Do you know something? I will use bloc

Ответить
@jliendostuardo
@jliendostuardo - 12.06.2020 19:46

I am a complete newbie with Flutter, been reading about state management and for the life of me I could not get it...until I saw your video...thank you very very much for this...

Ответить
@habeebmurtala7318
@habeebmurtala7318 - 24.05.2020 02:17

Mine didn’t work until I used the setState method to change the TemperatureType unlike you did in yours, is there a reason for that?

Ответить
@benmukanirwa
@benmukanirwa - 16.05.2020 21:24

Well explained. Thanks a lot

Ответить
@avisekhagarwal5082
@avisekhagarwal5082 - 13.04.2020 08:15

Please explain in a way every one could get it the way you have explained only some extra smart students had got your point I couldn't get anything

Ответить
@mecil9
@mecil9 - 15.03.2020 09:25

great video!!!! Activate Windows。。。。。。。hahha!

Ответить
@tusharbarman1924
@tusharbarman1924 - 23.02.2020 09:34

Bro the tutorial was great. But can I get the code on github so that I refer it whenever needed?

Ответить
@AbdulRahmanShamair
@AbdulRahmanShamair - 10.02.2020 09:02

A great video explaining the very basics of the Provider Pattern. I was confused which to choose from Bloc and Provider, now I have my answer. Superb <3

Ответить
@Chris-te7to
@Chris-te7to - 07.02.2020 12:26

This might be a silly question or I might have an old fashioned mindset, but lets suppose we have a list of items. we want to listen to the state of that list. So when the user adds a new item, we`ll be notified. But here comes my problem in understanding: i want to handle the state of each new, per user generated, item (which is just a new instance of a class). Do I need to have a new (kind of dynamic) provider for each of the items? How can I accomplish that, or is that approach not even necessary? Thanks in advance. Chris

Ответить
@ajaykotiyal427
@ajaykotiyal427 - 21.01.2020 20:39

Nice Teaching. Thanks for sharing

Ответить
@carmenperez250
@carmenperez250 - 09.01.2020 05:46

this video is gold, thanks

Ответить
@bartovmoti
@bartovmoti - 21.11.2019 14:35

Thanks, nice tutorial

Ответить
@jimmycanosa7496
@jimmycanosa7496 - 18.11.2019 06:14

What vscode extension used to display the lines for the indentation guide?

Ответить
@khaledelsherbiny4203
@khaledelsherbiny4203 - 07.11.2019 17:43

is this code available on github?

Ответить
@WikkiOnIlluminati
@WikkiOnIlluminati - 01.11.2019 06:35

Thanks

Awesome 👍

Ответить
@muhammadyusoffjamaluddin
@muhammadyusoffjamaluddin - 24.10.2019 15:11

Can you PLEASE EXPLAIN FIRST THEN RUN.


The Basics:
1) DO NOT BOTHER to RUN EXAMPLE half way of explaining the code unless you already explain everything you have written.
2) Unless you STARTS WITH EXAMPLE and THEN explain the CODE.

Do not do your work as teacher half way, explain code (half-way), run example, then continue explain code (where you left), it is annoying, seriously.

Ответить
@taetsu21
@taetsu21 - 23.10.2019 21:18

This is great and pretty easy to comprehend. One thing i'm not sure though, how would you access a provider from inside another provider? Example, how would you call another provider from the inside of WeatherInfo class where you don't have access to the context?

Ответить
@vavadiyahiren
@vavadiyahiren - 18.10.2019 21:53

it was very useful thanks man :) i was confused with the provider it really helps to understand better. Do you have the same kind of video for bloc and redux and what is the pros and cons then it will blast.

Ответить
@198boblob
@198boblob - 14.10.2019 02:22

Very well done

Ответить
@ruchirrai
@ruchirrai - 04.10.2019 00:19

BIG THANKS @RetroPortalStudio
Before watching this video I was kind of tensed and irritated with this utter confusing state management stuff.
It literally had wasted my 2 days.
I have become your fan. Hope you have more on flutter. I'd explore your channel regularly now on.

Ответить
@gonzaloivandossantosportal2363
@gonzaloivandossantosportal2363 - 23.09.2019 01:35

So, the Provider its like a Singleton ? We have this instance that we will manipulate in diferents widgets of the application, and as we manipulate this instance it will reflects in all other parts of the app(that use this object), because its the same instance, i get it right?

Ответить
@belqisshida5345
@belqisshida5345 - 21.09.2019 06:46

how to avoid unnecessary rebuilds? example:


Widget A.
Widget B.
Widget C.


Here when I update a state in Widget A with provider, the Widgets B and C rebuilds too.
So how to avoid unnecessary rebuilds in B and C ?

Ответить
@volodymyrrepetskyi8556
@volodymyrrepetskyi8556 - 25.08.2019 18:32

that photoshop way of describing is very nice idea, thank you!

Ответить
@darylwong4734
@darylwong4734 - 25.07.2019 08:51

Will you be able to post the code to github?

Ответить
@garrrrrrrry6596
@garrrrrrrry6596 - 17.07.2019 07:54

Awesome video !! We need more videos on PROVIDER! Like the architecture and other useful functions!

Ответить
@RiceCooker-hp5px
@RiceCooker-hp5px - 09.07.2019 08:42

what's the difference between with keyword and extend keyword ?

Ответить
@koustav2008
@koustav2008 - 07.07.2019 13:30

EXCELLENT Tutorial !!!

Ответить