Тёмный

Provider and ChangeNotifier in 7 Minutes 

Fun with Flutter
Подписаться 32 тыс.
Просмотров 56 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@michaelmboya5085
@michaelmboya5085 4 года назад
This channel is a blessing to those of us learning flutter. Keep up the good work
@FunwithFlutter
@FunwithFlutter 4 года назад
Thanks Michael!
@nazmumasood4997
@nazmumasood4997 4 года назад
Amazing explanation, to the point, but importantly covering almost all of the necessary basics. Articulating well in this manner is an awesome skill and somewhat rare as well. Appreciate the hard work and the effort man.
@FunwithFlutter
@FunwithFlutter 4 года назад
Writing this beautiful comment is much appreciated. Thank you! And you're welcome.
@sakibshaikh3447
@sakibshaikh3447 2 года назад
Best video to get grasp on beginner fundamentals of Provider package. Found very helpful Thank You😄
@dannykay4919
@dannykay4919 2 года назад
Amazing to see you depict the modules in the tree w/ the associated code, very cool!
@abhishekbhambure5146
@abhishekbhambure5146 3 года назад
I watched this video when I had no knowledge on state management , I understood nothing , then I read Flutter Complete Reference Book and watched this video again , now it completely makes sense. GoodJob
@FunwithFlutter
@FunwithFlutter 3 года назад
Thanks for the feedback! I guess all the info will be a lot to swallow if you're completely new to it.
@ubiux5994
@ubiux5994 4 года назад
Your channel is a pure treasure
@FunwithFlutter
@FunwithFlutter 4 года назад
Appreciate that
@metamorphis7
@metamorphis7 3 года назад
I have been struggling to implement provider in my project for a long time , but I made it work right after this video. Thanks for saving me from countless hours of head smashing
@FunwithFlutter
@FunwithFlutter 3 года назад
That is amazing. You're very welcome :)
@mikoaj1954
@mikoaj1954 2 года назад
perfect explanation, I really struggled to get this from articles, and this video came with help.
@FunwithFlutter
@FunwithFlutter 2 года назад
That's awesome to hear
@hiteshpandey8755
@hiteshpandey8755 4 года назад
Your explanation is better than the rest. You'll grow big for sure.
@Abhishvek
@Abhishvek 4 года назад
Hey! You should Also check this explanation😁ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hRStAmkTcJY.html
@DB-ho8cc
@DB-ho8cc 4 года назад
This video earned you a subscriber. Your presentation of this material was freaking flawless - better than Googles little video. Thank you.
@FunwithFlutter
@FunwithFlutter 4 года назад
Thanks man! The video took me a while to make, so I'm glad it's helpful
@chetangoyal8466
@chetangoyal8466 3 года назад
Helped me a lot today. Thanks..
@FunwithFlutter
@FunwithFlutter 3 года назад
Pleasure!
@davebound268
@davebound268 4 года назад
The best info I've found on this so far - massive thanks
@FunwithFlutter
@FunwithFlutter 4 года назад
No problem 👍
@yashgutgutia604
@yashgutgutia604 3 года назад
Lmfao why doesn't this have more views! Simple, Expressive, Covers everything, Visually easy to understand!!
@FunwithFlutter
@FunwithFlutter 3 года назад
Thanks Yash. Appreciate it. Remember spending a ton of time trying to make this video as compact and full of info as I can
@Caffeine81
@Caffeine81 4 года назад
Very helpful and boiled down to its essence. Keep it up!
@FunwithFlutter
@FunwithFlutter 4 года назад
That's the plan!
@dalanxd
@dalanxd Год назад
Amazing vid, thank you so much!!!
@mohammadamirnm
@mohammadamirnm 4 года назад
Your videos deserve more viewers!
@mr.knight8967
@mr.knight8967 2 года назад
now flutter 3.0.1 is current version, but your provider still better and great, thank you
@sahilkamra2
@sahilkamra2 3 года назад
I got it in 7 minutes. Thanks
@FunwithFlutter
@FunwithFlutter 3 года назад
Nice
@eliepoun8814
@eliepoun8814 3 года назад
awesome explanation, and what makes you special that you are precise and concise. let me add that it would be better if you can share a specimen of source code ( i believe this way would increase the number of viewers also )
@FunwithFlutter
@FunwithFlutter 3 года назад
Great suggestion!
@gowthammg3564
@gowthammg3564 4 года назад
best video on provider i have ever seen. keep going
@FunwithFlutter
@FunwithFlutter 4 года назад
Sweet! You should check out the next one in this series. I think it's even better.
@gowthammg3564
@gowthammg3564 4 года назад
@@FunwithFlutter ya ill check that too.. Post more such advanced concepts in this way. Soon your channel will rock
@shivamrathore8009
@shivamrathore8009 3 года назад
Very helpful
@karanjhinga
@karanjhinga 4 года назад
Damn bro 😯 what a quality content 👌 u explained it better than there documentation.🎉
@FunwithFlutter
@FunwithFlutter 4 года назад
Thanks man!
@Tibiafy
@Tibiafy 3 года назад
Cara muito obrigado pelo vídeo. Embora eu não tenha feito como vc, vc me deu uma luz pra resolver meu problema. Eu estava usando o ChangeNotifierProvider e não estava funfando nem pro decreto. É pq eu tinha usando um MultiProvider e tinha dado um vacilo lá trás. vlw ai jovem
@danielchan1203
@danielchan1203 3 года назад
May I know if I obtain a change notifier, and would like to listen to its change in the same widget. So I should wrap a ChangeNotifierProvider and Consumer in the same widget, or is there any other cleaner way?
@FunwithFlutter
@FunwithFlutter 3 года назад
Yes. But it’s always a good idea to make your widgets as small as possible. If you only need the changenotifier for that ONE widget then it may bet better to just use a StatefullWidget. I’ve been using Riverpod the last year, so haven’t thought about regular Provider since I made these vids
@danielchan1203
@danielchan1203 3 года назад
@@FunwithFlutter Thank you for your reply. I think it is a bit clumsy to set up a provider and consume it immediately. I have tried to create a stateful widget called ChangeNotifierBuilder and it works. It takes a change notifier and builder function as arguments, which listen to the update of the ChangeNotifier and call setState to rebuild the widget. I think it is cleaner.
@shashankjamdade2224
@shashankjamdade2224 4 года назад
Really nice video....hats off man
@FunwithFlutter
@FunwithFlutter 4 года назад
Why thank you!
@blank-vw2sb
@blank-vw2sb 4 года назад
I appreciate it. Great content, man
@FunwithFlutter
@FunwithFlutter 4 года назад
Thanks for all of the nice comments! Cheers
@blank-vw2sb
@blank-vw2sb 4 года назад
@@FunwithFlutter Cheers!! Good luck...
@stephenoyeyo9176
@stephenoyeyo9176 4 года назад
Great video , keep them coming 💪
@FunwithFlutter
@FunwithFlutter 4 года назад
Will do!
@sankalpamokal9186
@sankalpamokal9186 3 года назад
How to call a method in initstate if we are using stateless widget in this architecture?
@adnanhaider9949
@adnanhaider9949 3 года назад
if i want to sent data to MyCounterWidget to MyNameWidget it mean from one route to another route so how can i do that kindly guide me about this issue thanks advance
@erperejildo
@erperejildo 4 года назад
instead of using select on a param can we do something like Provider.of(context).myParam; or that's different?
@euginium1539
@euginium1539 3 года назад
I feel stupid. I still don't understand when to use Consumer or Selector . Help
@FunwithFlutter
@FunwithFlutter 3 года назад
Just use Consumer :) always. Unless you only want access to one property on an object, then use Selector.
@adbysantos6603
@adbysantos6603 3 года назад
Good video, bro
@FunwithFlutter
@FunwithFlutter 3 года назад
You're welcome man
@1879heikkisorsa
@1879heikkisorsa 4 года назад
What's your opinion about the stacked architecture vs using plain provider state management?
@FunwithFlutter
@FunwithFlutter 4 года назад
I haven't used Stacked, I've just seen some of the FilledStacks videos. So take whatever I say with a grain of salt. But Stacked is basically just a structured way to use provider with ChangeNotifier, it gives the building blocks and you get a lot out of the box. The only reason I'm not using it is because I like to solve my own problems and learn from those problems and have more control over what I do. Which is essentially what Stacked aimes to solve, it addresses the things you'd want from a state management framework when using provider. Because provider on its own is not a state management solution, its just a way to expose state (how you manage the state is up to you). So if you want a structured way to manage your state, then Stacked seems like great solution. But it is very opinionated on exactly how things should be done. If you want more control over what you're doing then going from scratch is the way to go. You can always look at the source for Stacked and take the things you like. I recently released a video on StateNotifier and provider (which solves a lot of the problems of using provider with ChangeNotifier). I suggest you take a look at that. I've been working a lot with different Provider solutions and I really like StateNotifier (together with sealed classes, or Freezed). I'll also be making a longer series soon showing how I use provider in a full app.
@1879heikkisorsa
@1879heikkisorsa 4 года назад
@@FunwithFlutter thank you very much for the detailed answer! It really helps to evaluate the value of such solutions. Keep up the good work. Do you offer consulting or freelance work as well as teaching?
@FunwithFlutter
@FunwithFlutter 4 года назад
@@1879heikkisorsa No problem, I love talking about this. And yes, I do freelancing. You can reach me at funwithflutter@gmail.com if you have any enquiries.
@hirakjyotiborah5687
@hirakjyotiborah5687 4 года назад
make a video playlist on flutter_bloc and it's usecase
@nowhynot7711
@nowhynot7711 4 года назад
Perfect Explanation, Perfect Video Editing , Perfect Example::: Awesome
@FunwithFlutter
@FunwithFlutter 4 года назад
Thanks! :)
@dhruvajindal4932
@dhruvajindal4932 3 года назад
At 5:30 : What's difference between child and return in consumer ?
@FunwithFlutter
@FunwithFlutter 3 года назад
The child will be cached, so won't be rebuilt on each provider update
@dhruvajindal4932
@dhruvajindal4932 3 года назад
@@FunwithFlutter But the return is shown in the UI. So what is the child for?
@FunwithFlutter
@FunwithFlutter 3 года назад
The return can return the child, and show that. But then that child would be cached, and you get a performance benefit because Flutter won't rebuild the child.
@alexisenp
@alexisenp 4 года назад
Thanks 🙏🙏
@techstudio7331
@techstudio7331 4 года назад
Awesome
@samario_torres
@samario_torres 3 года назад
volume up in videos
@FunwithFlutter
@FunwithFlutter 3 года назад
You're right! I actually increased the volume for all of the vids after this one (I think). Anyway, the newer videos are louder.
@ben6
@ben6 3 года назад
I had no idea that `context` was a member of `State`.
@xtraszone
@xtraszone 2 года назад
// ! Provider CheatSheet // Step 1: Create Model class class Counter extends ChangeNotifier { int count = 0; void increase() { count++; notifyListeners(); } } // Step 2: Wrap root widget in MultiProvider, Also initialise Counter() here MultiProvider( providers: [ ChangeNotifierProvider(create: (_) => Counter()), ], child: MaterialApp(), ) // Step 3: Read value final count = Provider.of(context).count; // Step 4: Write value Provider.of(context, listen: false).increase();
Далее
Provider: Proxy, Stream and Future in 6 Minutes
6:10
Flutter Provider: The Essential Guide
17:12
Просмотров 69 тыс.
skibidi toilet multiverse 042
20:57
Просмотров 4,9 млн
She Couldn’t Believe I Did This! 😭 #shorts
00:12
I tricked MrBeast into giving me his channel
00:58
Просмотров 3,5 млн
State Management Like A Pro - Flutter Riverpod
10:30
Просмотров 76 тыс.
Flutter Animation in 5 Minutes
5:01
Просмотров 176 тыс.
Flutter Provider Simply Explained
9:08
Просмотров 91 тыс.
Flutter Provider - Advanced Firebase Data Management
11:08
Flutter Provider: Introduction
9:55
Просмотров 93 тыс.
Top 30 Flutter Tips and Tricks
6:50
Просмотров 563 тыс.
Pragmatic State Management in Flutter (Google I/O'19)
33:25
skibidi toilet multiverse 042
20:57
Просмотров 4,9 млн