Flutter Proxy Provider Simply Explained

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • Flutter Proxy providers are confusing yet useful.
    👉 Pre Sign Up to Flutter Learning Platform :
    learncodecode.com/fluter-lear...
    🔥 Check out my courses - zukunf.com/courses
    🎨 Source code:
    pub.dev/packages/provider
    ⏰ Timeline:
    00:00 - Introduction
    00:55 - Why Proxy Providers
    01:42 - ProxyProvider0
    05:04 - What is the difference?
    07:18 - ProxyProvider example
    09:57 - Another way of creating proxy provider
    10:51 - Another way example
    13:03 - Outro
    🦋 Hear my thoughts on Twitter -
    / thehappyharis
    📷 Get updates frequently on Instagram -
    / thehappyharis
    🤓 See daily learnings on LinkedIn -
    / muhammad-haris-bin-sam...
    😂 Watch my funny side on TikTok -
    / thehappyharis
    📘 Rarely here, but why not Facebook:
    / happy-hilarious-haris-...
  • Zábava

Komentáře • 22

  • @kamransaeb1134
    @kamransaeb1134 Před rokem +1

    Bro thanks for all your videos. It is really easy and organized. Thanks for the effort. wish you all the best and good luck!

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

    Great video. One suggestion from a teacher perspective. You could have used some self-created class instead of "int" in Provider.of(context ) . Even if an integer counter, we should try to wrap it in a self created CounterModel object and then use Provider.of(context). The reason is that if we have multiple integer variables in our "provider tree", then it makes our tree ambigious that which int provider is wired where.. I hope this makes sense as I am also a beginner, and learning from your videos.

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

      Thanks for pointing it out. Will take note on this

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

      @@LearnFlutterCode Cheers. Great videos. keep them coming.

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

    Thanks man! Pretty clear and concise explanation.

  • @Akua-hx3rb
    @Akua-hx3rb Před 11 dny

    What is Teeeee and What is aRR - hahaha I love it :) Very pedagogic video.

  • @cyclothunder
    @cyclothunder Před 3 lety

    Great videos!! Hope my question makes sense. When should I use provider instead of other state management like GetX ?

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

    The provider package seems to be the best option to use with basic projects but not in big projects. My claims are the dependency injection is abused, having to see multi providers and proxy providers in a lot of files is daunting. I prefer to use redux, I'm in the process of dropping all the provider implementation and I'm really happy of how the flutter code looks now.

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

      To each its own. The best provider package is the one you or/and your team are comfortable with.

  • @MuhammadAhmad-df5ho
    @MuhammadAhmad-df5ho Před 3 lety +1

    I have a issue i want to show the logo of the user from my firestore the user that is authenticated but... i time i get my result ...if i logout and login another user the logo value remain same of past user...
    First i authenticate my user then i get the ata from firebase that i save according to authemticated user

  • @Vasudevan.Gnanasekaran
    @Vasudevan.Gnanasekaran Před 3 měsíci

    Nice video

  • @KarthikMynampathi
    @KarthikMynampathi Před 2 lety

    What is the presentation software that you use?

  • @animeshbanerjee4379
    @animeshbanerjee4379 Před rokem

    Hey mate, thanks for a lot of help.
    I am small confused like I update my ui with Consumer wrapped with ChangenotifierProvider, so can I replace it with ProxyProvider0. I'm saying this because as shown in your video that ProxyProvider can change values. So can I replace it or I made a mistake please help me guide.
    Thanks your Fan❤

  • @yakine13
    @yakine13 Před 4 lety +1

    What's is this ''Teeee'' and ''aarrrrr'
    You're funny without even knowing, best teaching method eveeeeer.
    Can you please, help me understand what I need to learn for my app? I've defined it clearly and coded the UI perfectly. Now I need to work on the back end.
    I'll also pay you nicely for those tips ^^

  • @anonymousfatfreddy6240

    Hi Happy!

  • @zahrayousefi9400
    @zahrayousefi9400 Před 2 lety

    which one should I use? provider or getx

    • @Jay-kb7if
      @Jay-kb7if Před rokem

      late reply but more for people viewing this video in the future, getx is trash. Stay away from it.

  • @ac130kz
    @ac130kz Před 4 lety

    I'd be happy to see state_notifier + freezed + riverpod + flutter_hooks, as described by Remi Rousselet himself

    • @ismannyb8148
      @ismannyb8148 Před 3 lety

      I tried rivepod Is still in beta.

    • @ac130kz
      @ac130kz Před 3 lety

      @@ismannyb8148 still in beta, but truly a game changer

  • @vinayreddypulagam
    @vinayreddypulagam Před 4 lety

    Next RxDart

  • @sultanaakter4033
    @sultanaakter4033 Před 2 lety

    you r so funny