Flutter Provider Simply Explained

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • Hopefully a 5 year old would understand the Flutter Provider. Yikes
    👉 Sign up for the newsletter to get Flutter latest updates:
    learnfluttercode.com/newsletter
    🔥 Check out my courses -
    🎨 Source code:
    pub.dev/packages/provider
    ⏰ Timeline:
    00:00 - Introduction
    00:26 - What is a provider
    02:28 - How do we create a provider
    04:22 - How data flows through a provider
    05:44 - Can other widgets listen to the same provider?
    07:21 - Challenge
    🦋 Hear my thoughts on Twitter -
    / thehappyharis
    🤓 See daily learnings on LinkedIn -
    / haris-samingan-7889b9140
  • Zábava

Komentáře • 155

  • @cocoralf
    @cocoralf Před 3 lety +54

    The most didactic and graphic videos I´ve ever seen. You sure know how to help people understand, you really are an outstanding teacher. Cheers from Argentina!

  • @denzell5070
    @denzell5070 Před 3 lety +68

    Shoutout to the devs that need concepts to be explained to them in kid terms.

  • @kimbowaaloysius9034
    @kimbowaaloysius9034 Před 3 lety +20

    This is the best tutorial I've ever seen. You are an adept tutor. Bravo Harris, bravo!

  • @oniscsadi
    @oniscsadi Před 3 lety +8

    Awesome explanation. Classic example of "If you can't explain it simply you don't understand it well enough". Thank you

  • @dennyraymond9932
    @dennyraymond9932 Před 3 lety +49

    Waiting for the future, proxy and stream provider explanations, combine with implementation with firebase too 🔥

  • @lucasandrade7421
    @lucasandrade7421 Před 3 lety +13

    I usually dont comment on CZcams tutorials, but Man, yours was so easy to follow and so joyful that I just had to. I hope you keep up the good work and high quality explanation videos because they are awesome! Cheers from Brazil

  • @LongNguyen-kw1rh
    @LongNguyen-kw1rh Před rokem +2

    OMG thank you 3000 times this saves my life I've been so exhausted in class because I didn't get the provider concept so following lessons made me confused too, this maybe a hit to get things aligned

  • @plainfilth1126
    @plainfilth1126 Před 3 lety +8

    I like this guy's vibe and the analogy, he earned my subscription!

  • @batuhankrbb
    @batuhankrbb Před 3 lety +4

    It's the best provider explanation on the internet by far. I wish all teachers were like you

  • @mxzeromxzero8912
    @mxzeromxzero8912 Před 2 lety +2

    Best provider tutorial ive seen so far. Kudos for you man

  • @AungWinHtutGH
    @AungWinHtutGH Před 2 lety +4

    Dear Sir, you save my day! Crystal clear explanation with fish and river indeed :). Thank you so much and waiting for more tutorials.

  • @GfoxSim
    @GfoxSim Před rokem +4

    What an awesome video! So calm and easy to understand. I was confused by Provider but now I'm getting the hang of it. Thank you.

  • @yoapps137
    @yoapps137 Před 3 lety +10

    Nice, I really recommend this for those who come from any non JAVA background, especially JS. This is a very good place to bring into perspective how important it would be to come with a backing of Inheritance, Composition and Generics. And then you would really admire Flutters ability of weaving these hard core programming concepts into a simple package. Great example!

  • @user-ou7hd1zi2i
    @user-ou7hd1zi2i Před 5 měsíci

    Bro.... Thanks so much. I've watched all these videos where they make provider look like some untamable monster. And no matter how many times I memorized and wrote the code in different styles, I still couldn't figure out what the heck was going on. But now I do and it's so simple!🔥🔥🔥🔥🔥

  • @mathstific
    @mathstific Před měsícem

    this is very useful and nobody ever explained me like this. this lesson is very clear to me. hopefully 5-year-old kid may understand this even though he does not know what flutter is 😅

  • @Mohammed-tr1hf
    @Mohammed-tr1hf Před 2 lety +1

    Because it was silly .. it was a perfect! We need a river pod video now.😩

  • @chriskt
    @chriskt Před 3 lety

    Beautifully explained! Thank you so much!!

  • @Burak-cr6um
    @Burak-cr6um Před 5 měsíci

    Thank you, it helped a lot, you make things very simple to understand.

  • @amzadonim9785
    @amzadonim9785 Před 3 lety +1

    Best provider video on youtube.You are such a great teacher

  • @kekko7072
    @kekko7072 Před 2 lety +1

    Best video about provider! Thank you so much

  • @prayushdawda7807
    @prayushdawda7807 Před 3 lety

    Simple and Awesome! Thank you so much!

  • @RamsesAldama
    @RamsesAldama Před 3 lety +1

    Nice video. When the home and settings widget want to get the data from the provider, do they get a copy of the data or a references to the data? If they get a copy, isn't that expensive? Thanks.

  • @SergioArroyoSailing
    @SergioArroyoSailing Před 3 lety +1

    awesome work! and humorously done at the same time :) great work!

  • @anshikaguleria8794
    @anshikaguleria8794 Před 6 měsíci

    OMG! thanks
    this helped me a lot cause I have going through so many materials but just couldn't understand what was going on

  • @ernitish8929
    @ernitish8929 Před 2 lety +1

    after More then 7 time try, now i understand thanks

  • @pranthonyaquino
    @pranthonyaquino Před 3 lety

    Excellent explanation, now I love provider, fishes and your channel.

  • @pixmasterstudios5623
    @pixmasterstudios5623 Před 3 lety +1

    The best yet simple explanation for Provider package. Keep it up Haris🔥😎

  • @BrunoMotadeOliveira
    @BrunoMotadeOliveira Před 7 měsíci

    Thanks for this great explanation! I learned a lot!

  • @stefanomilani
    @stefanomilani Před 3 lety

    Great and nice explanation, really easy to understand, especially for the position of the widgets in the tree!!!

  • @kaviramsamy3708
    @kaviramsamy3708 Před 2 lety

    What an amazing analogy... Awesome tutorial. Thanks

  • @Zizo1st
    @Zizo1st Před 3 lety +5

    Great work man 👍! Love the way you explain this, hope for more.
    You should make a full course for Flutter!
    Cheers from Egypt =)

  • @RLstavista
    @RLstavista Před 2 měsíci

    These are really great for dummies explanations with pictures haha. Good stuff!

  • @queensley9006
    @queensley9006 Před 2 lety

    Thank you so much man, this was so easy to grasp

  • @douachealaeddine878
    @douachealaeddine878 Před rokem

    Man you deserve a subscribe, thank you!

  • @yogaroutines6501
    @yogaroutines6501 Před 2 lety +1

    I was searching and reading for multiple sites and video to understand the provider concepts but i was not 100% clear to understand the concepts. This video is amazing and nicely explained the concepts with graphic animated story, i could digest the concepts very easily. Subscribed to your channel and going to see your other videos. Thanks

  • @shrutigarg3112
    @shrutigarg3112 Před rokem

    This is so amazing video till I watched... I was go through with multiple videos but never watched like this explanation..

  • @EduardAlexandru
    @EduardAlexandru Před rokem

    Nicely explained, thanks!

  • @OrucMahmood
    @OrucMahmood Před rokem

    Amazing explanation! Thanks a lot!

  • @nurmtv2983
    @nurmtv2983 Před 2 lety

    Thanks bro! U r amazing! Keep doing what you do!

  • @133sjassson8
    @133sjassson8 Před rokem

    What if I store the object/fish in a specific place eg. constants.dart, and access it by importing when needed? Can I do this instead of using Provider?

  • @fazalmuhammad5467
    @fazalmuhammad5467 Před 3 lety +1

    Love u flutter teacher sensei ustad guru 😍😘👨‍💻👨‍🏫

  • @maxxxtermind
    @maxxxtermind Před 7 měsíci

    Oh my god, finally a tutorial for my cognitive abilities. Thank you ❤

  • @sagnikbhattacharya1062

    Which software do you use for animations?

  • @ClocianClokes
    @ClocianClokes Před 2 lety

    Very well explained!

  • @saadmansoor3547
    @saadmansoor3547 Před rokem

    "Widget only flows downwards". You mean in the first example @ 7:00 , i cannot access user data from 's object ?

  • @logicgates8944
    @logicgates8944 Před 2 lety +1

    Great explanation; Thank you for your time

  • @aysekarahasan7091
    @aysekarahasan7091 Před 2 lety +1

    It is really beneficial video, thank you for
    embodying it with fishing :)

  • @marsas61
    @marsas61 Před 3 lety

    Thanks for the best explanation. I was having difficulty to understand the concept.

  • @pradeepkumarreddykondreddy7048

    Can you do a video on ChangeNotifier ?

  • @awais.16
    @awais.16 Před 3 lety

    very well explained, I am working on firebase but I have doubt about provider.. thanks for such a wonderful explanation.

  • @midclock
    @midclock Před 3 lety

    Very nice explained in this way. Thanks

  • @tobuchan928
    @tobuchan928 Před 3 lety

    This video is so good and useful, nice job man.

  • @ILUSHNIK
    @ILUSHNIK Před 3 lety

    For me this is not the best analogy because after fish has copied into two 6:16 we have two independent fishes. Because of that, if we change color of the settings fish, home fish stays the same red color. That is not correct.
    I prefer to visualize it as a context with inversed terrain heights in your picture example (Home, Settings at the top of the mountain and fish object at the bottom), watchman with binoculars is a provider.of(context). Watchman can look at any object 24/7 in surroundings below but not above. In that case we can have a lot of watchmen located at different heights in the mountain looking at the same fish below. If fish changes it's property, color for example, all watchmen outposts get notified instantly and handle it according their own script.

  • @paininmydroid4526
    @paininmydroid4526 Před 3 lety

    I second all of the comments that call you a great teacher. You are probably the best I've ever seen on CZcams. Keep making vids brother.

  • @amnaijaz4230
    @amnaijaz4230 Před 2 lety

    Amazing concepts thanks alot

  • @AbhishekYadav-uy4zp
    @AbhishekYadav-uy4zp Před 2 lety

    Hey.. Provider working good in debug mode but not working in release mode.
    (future Builder, then Consumer)
    I wrap the switch inside the consumer

  • @mohammad-karbalaee
    @mohammad-karbalaee Před rokem

    That is hight-quality educational content. Thanks

  • @ericchua3492
    @ericchua3492 Před 3 lety +1

    which state management will you recommend? i feel flutter_bloc requires to write bloaty codes, and end up lost focus aka take too long time.. is there a better choice?

  • @h_s_4049
    @h_s_4049 Před 3 lety

    wowww maannn....great explanation....thanks alot!!!😍😍🙏😍🙏🙏

  • @shahidbangash4778
    @shahidbangash4778 Před 2 lety +1

    Wowwwwwwww I really love it. Amazing .. keep it up

  • @rkumar4593
    @rkumar4593 Před rokem

    best explanation, Thanks,

  • @adiktuz8545
    @adiktuz8545 Před 3 lety

    hi. do you plan on release riverpod course in udemy?

  • @jaggyjut
    @jaggyjut Před 3 lety

    beautifully explained. i like the way you said little fishy.

  • @saliouseck4263
    @saliouseck4263 Před 2 lety +1

    Thanks for the video

  • @theartofdesign8422
    @theartofdesign8422 Před 3 lety

    Thank you ,Very useful

  • @marcosmarques9228
    @marcosmarques9228 Před 3 lety +2

    Just the explanation I needed

  • @sempribo
    @sempribo Před 3 lety

    Awesome Explanation!!!:)

  • @ahmedabuelnour1648
    @ahmedabuelnour1648 Před 2 lety

    Thank you!

  • @stvhrsdev9103
    @stvhrsdev9103 Před 3 lety +3

    Love ur conten pls create more on ur ig

  • @verryondrums
    @verryondrums Před 3 lety

    Wow this is awesome!

  • @christianarduino764
    @christianarduino764 Před 3 lety

    Amazing! Great video

  • @krishanmadushanka9521
    @krishanmadushanka9521 Před 2 lety

    Nice explanation

  • @nimas7840
    @nimas7840 Před 3 lety

    Thanks, man.

  • @cookeneimfrancescaluisecuc5802

    thank you!

  • @b3njamim
    @b3njamim Před 3 lety

    The perfect Provider tutorial doesn't ex...
    wait! it is this video.

    • @LearnFlutterCode
      @LearnFlutterCode  Před 3 lety

      The perfect comment doesn't ex...
      wait! it is this comment.

  • @reactnativedeveloper1682

    best tutorial ever

  • @user-or7ji5hv8y
    @user-or7ji5hv8y Před 3 lety

    Is it like declaring a variable that has scope to all the children in the widget tree?

  • @aiaesthetic4201
    @aiaesthetic4201 Před 2 lety

    Amazing!

  • @TheBoredandCool
    @TheBoredandCool Před 3 lety

    It was just awesome

  • @Kliamframe
    @Kliamframe Před 2 lety

    I get it now!

  • @parthjangid3587
    @parthjangid3587 Před 2 lety

    You are great!

  • @Aravind_Hindhu
    @Aravind_Hindhu Před 2 lety

    Please explain build context method.. It is mind bogling

  • @petroniobonavides3530
    @petroniobonavides3530 Před 3 lety

    Awesome!!!!!

  • @JakBeat
    @JakBeat Před 2 lety

    Hahah so cute! Thank you!

  • @neocoretec
    @neocoretec Před měsícem

    Perfect!

  • @uiux.developer
    @uiux.developer Před rokem

    Hello, Sir, I'm 5 years old I got it ... but how and where I will learn the rest of Flutter please make more videos like that.

  • @balas80
    @balas80 Před 3 lety

    good visual explanation ..

  • @alvido97
    @alvido97 Před 2 lety +1

    ❤️

  • @oldmen2544
    @oldmen2544 Před 3 lety +1

    Brother I want to filter firestore data which I am getting through future builder .... Please 🥺 help me
    I can pay you for that...

  • @akarshs9552
    @akarshs9552 Před 3 lety +1

    you got 1 more subscriber .. Keep posting flutter videos

  • @zkira445
    @zkira445 Před 3 lety

    This video is so cool 😎

  • @KDTechverse
    @KDTechverse Před 3 lety

    Why was that fish so fishy ? 😂
    Well,
    Simple, neat and clean explanation keep doing the good work !

  • @abdulmagidelmaghbub9950

    nice explenation

  • @Yusuf-rh6sj
    @Yusuf-rh6sj Před 3 lety +1

    awesome

  • @ElroyToscano1623
    @ElroyToscano1623 Před 3 lety

    How do you pass data from child widget to parent widget, considering the fact that context flows downwards? Is there an alternative? Or isn't it not possible at all?

    • @LearnFlutterCode
      @LearnFlutterCode  Před 3 lety +1

      You can use a function call back. Or you can use a change notifier that lives at the top of the parent widget

    • @ElroyToscano1623
      @ElroyToscano1623 Před 3 lety

      @@LearnFlutterCode Could you make a video demonstrating the same?

  • @02in01
    @02in01 Před rokem

    But from where do you get the actual data?

  • @Henry-kc7uc
    @Henry-kc7uc Před 29 dny

    wow so interesting

  • @danielderese3170
    @danielderese3170 Před 3 lety

    Awsome

  • @yajatvishwakk6744
    @yajatvishwakk6744 Před 3 lety

    If he'd be my college teacher, I'd spend more time inside the class than outside.

  • @storylineteam
    @storylineteam Před 3 lety

    combine provider with getit and rename the fish to Shark singleton :P