Provider 📱 Simple State Management • Flutter Tutorial

Sdílet
Vložit
  • čas přidán 9. 08. 2023
  • 📱 Flutter Courses • mitchkoko.app/
    💰 Hire Me / Book Consultation Call • mitchkoko.gumroad.com/l/CallW...
    ❤️ True Fans • / mitchkoko
    ~ ;
    📱 INSTAGRAM • / createdbykoko
    🐦 TWITTER • / createdbykoko
    📱 TIKTOK • / createdbykoko
    🎧 FLUTTER POD • / @flutterpod
    💬 JOIN DISCORD SERVER • / discord
    💻 GITHUB • github.com/mitchkoko/
    🖥 WEBSITE • mitchkoko.app/
  • Věda a technologie

Komentáře • 76

  • @createdbykoko
    @createdbykoko  Před 10 měsíci +10

    🔥 Flutter App Templates • mitchkoko.app/
    📱 Flutter Minimal Social App • mitchkoko.gumroad.com/l/MinimalSocialApp
    📱 Flutter Minimal Ecommerce App • mitchkoko.gumroad.com/l/MinimalEcommerceApp
    Apps I've made using Provider:
    🥑 Grocery Shop App • czcams.com/video/uSljGJGSl6w/video.html
    📱 Coffee Shop • czcams.com/video/RPvhoghXn54/video.html
    👟 Sneaker Shop • czcams.com/video/UcwsuZP071Y/video.html
    I hope this helps you ✌🏾💜

    • @kashaf8863
      @kashaf8863 Před 10 měsíci +2

      plz make video on API using provider (get ,post ,push metods)

    • @abasilis
      @abasilis Před 10 měsíci

      @@kashaf8863 Count me in! 😀

  • @arvidd
    @arvidd Před 10 měsíci +16

    Bro carrying flutter tutorials on CZcams right now ... Keep up the good work! 👍

  • @philosophia5577
    @philosophia5577 Před 10 měsíci +18

    Much awaited State Management series from Koko. You have helped me improve my UI skills to a great level and its great to see you getting more into logic and backend.. Hope to see a lot more videos on State Management and best coding practices, architectures, etc.

  • @ThePilli41
    @ThePilli41 Před 10 měsíci +20

    This may as well be THE best explanation video on privider I have seen. Straight and simple. I cant wait for the further implementation in the sushi app! Keep it coming!

    • @createdbykoko
      @createdbykoko  Před 10 měsíci +1

      thank you haha sushi app coming up💜

  • @thomasthemaker
    @thomasthemaker Před 8 měsíci +6

    Simple & straightforward, great job Koko!

  • @kingsleyzuze9949
    @kingsleyzuze9949 Před 10 měsíci +2

    Thank you for this, I was writing flutter relying on setState a lot but now that I am working on bigger projects, I want to move on to using either provider or bloc.
    Thank you again.

  • @gofullstack
    @gofullstack Před 10 měsíci +7

    In my case, I won't call the "CounterModel" class "CounterModel" because it isn't a model. This is where you do the business logic, data fetching, and other interactions with external resources like APIs or databases. If you know what a data class is then that's a model, models define the structure of your app's data like "Order", "User" and more but a class that provides data and handles the business logic for your Widget(s) should be called a "Service Provider", I mean "CounterService" while you could have a "CounterModel" if your counter is more than just an "int".
    You made the 👍 best, wish I saw this while I was learning instead of reading the entire documentation 🤣🤣

  • @flutterIgnite
    @flutterIgnite Před 4 měsíci

    Koko did it again. Much appreciated tutorial

  • @valkiprasannakumar2387
    @valkiprasannakumar2387 Před 10 měsíci +24

    Some people have great brain,i don't know why I am not able code like them ,god gifted people 😭

    • @batcracka
      @batcracka Před 10 měsíci +6

      keep working ! find out what works for you and stay positive you’ll get there

    • @mixfruiet
      @mixfruiet Před 10 měsíci +5

      Practice matter

    • @camilocharry
      @camilocharry Před 10 měsíci +5

      Is practice and practice bro, don't give up

    • @GameTubegames
      @GameTubegames Před 10 měsíci +5

      Once upon a time i don’t even understand what is variable but now Alhamdulillah i learned a lot. Just learn everyday and don’t lose hope that's it

    • @mayankbhaisora2699
      @mayankbhaisora2699 Před 8 měsíci +1

      it’s all about practice. Start practising and you will understand that most of those people are not god gifted but became this good just because they have worked hard and continuously and given priorities to programming in their life.

  • @ibrahimruben00
    @ibrahimruben00 Před 10 měsíci

    Thank you so much!!! We really needed this video :)

  • @BottropBoy
    @BottropBoy Před 10 měsíci

    Finally! Thanks, bro!

  • @rishabhmukadams-2910
    @rishabhmukadams-2910 Před 10 měsíci

    Thank you so much for this tutorial ❤

  • @indianapapi
    @indianapapi Před 7 měsíci +3

    Thank you for making this. I'm new to flutter and your videos are a big help!

  • @aaomms7986
    @aaomms7986 Před 8 měsíci

    You video are really quality thank man. Love u

  • @metehanmete1210
    @metehanmete1210 Před 10 měsíci

    i love you brother. Your tutorials are easy to understand. thnx

  • @heberthdeza
    @heberthdeza Před 4 měsíci

    Thanks Mitch Koko, it is simple and easy to understand. Regards.

  • @aka-Monster01
    @aka-Monster01 Před 8 měsíci

    thank u very much for explaining it in simple way with the default project
    i spent my one entire day scrolling youtube to learn this concept but still confused what the heck they did coz i can't do it along as there project is different
    doing it side by side and manipulating really helps me to grasp it

  • @someshsahu4638
    @someshsahu4638 Před 5 měsíci +1

    nice video thank you so much 🙏🏼🙏🏼🙏🏼

  • @arslanrasit
    @arslanrasit Před 10 měsíci

    FINALLY thank you

  • @PAKGOV
    @PAKGOV Před 10 měsíci

    ❤ for making state managed app with provider

  • @e_velog
    @e_velog Před 10 měsíci

    Your explanation is really good - Provider has been confusing me quite a bit - but I can't wait to see your video covering the application of Provider in the sushi app. I feel like I understand the basics, but am really struggling with applying Provider in a complex app and examples I found on the internet aren't really good at explaining it either...

  • @pushpendra10001
    @pushpendra10001 Před 10 měsíci

    thanks for making this video i just comment last time about this topic and you make video thanks bro

  • @ebuzersariyerlioglu3520
    @ebuzersariyerlioglu3520 Před 10 měsíci +2

    Thanks for this useful video. Please make Twitter sign in😊

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

    Thanks a lot, Finally I understood what is the provider😅

  • @KAIZENTECHNOLOGIES
    @KAIZENTECHNOLOGIES Před 10 měsíci

    Greet video mitch! Could you make a neumorphic nav bar tutorial. That design trend must not die!

  • @romixraoera1358
    @romixraoera1358 Před 10 měsíci

    thanks

  • @SEGVeenstra
    @SEGVeenstra Před 10 měsíci +2

    For the onPressed, I think you could just put the value.increment tear-off in there, right?
    onPressed: value.increment,

  • @AppyBuilder
    @AppyBuilder Před 3 měsíci

    Bravo. Please have a short video on multi-provider. THX

  • @yapyh2872
    @yapyh2872 Před 10 měsíci

    Can you do one for Riverpod too?

  • @suldanka
    @suldanka Před 10 měsíci

    Thanks
    How to use if am using multiple classmodels and material route page?

  • @poisonels8023
    @poisonels8023 Před 9 měsíci

    Video on flutter common erros

  • @ettitaiwo1642
    @ettitaiwo1642 Před 17 hodinami

    Hi
    Please do a video on riverpod ❤❤

  • @rusbeh5351
    @rusbeh5351 Před 9 měsíci +1

    is there any way to wrap the Scaffold widget instead of ctrl + x?

  • @ettitaiwo1642
    @ettitaiwo1642 Před 10 měsíci

    Can you make a video on multiple providers

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

    can you please do a river pod v2, reading and updating a variable and thus state.

  • @vitalyuchter
    @vitalyuchter Před 3 měsíci

    Great vid! explained it really simple
    But in most apps there are multiple states, how do you wrap it all in your widget?
    What about the main(), do you add the same changeNotifier to every single provider?

  • @MohammadAlbazel
    @MohammadAlbazel Před 9 měsíci

    Could you please apply the stacked package?

  • @BOYGG-be8tb
    @BOYGG-be8tb Před 2 měsíci

    thanks Koko,Do it have any other common uses now?

  • @muadzrosli
    @muadzrosli Před 10 měsíci +1

    How to consume more than one model in a page or in a widget?

  • @tsk8349
    @tsk8349 Před 10 měsíci

    Can I do state management by using hive db

  • @gyanupadhyay9473
    @gyanupadhyay9473 Před 10 měsíci +2

    bro plz make some course on bloc u make very short which is of no use

    • @gofullstack
      @gofullstack Před 10 měsíci +1

      I don't know why I never tried to learn Bloc at all, maybe because I think the provider does all the magic so well but I'd love to see a video from Mitch Koko

  • @mohammedalhinawy8238
    @mohammedalhinawy8238 Před 10 měsíci

    💜

  • @joaopaulolima9612
    @joaopaulolima9612 Před 4 měsíci +1

    Another question, in this case for improving performance instead of wrapping all the scaffold, we also could’ve wrapped only the text Widget right?
    Knowing that the text() is also a widget and itself has a build function to be called by notifyListeners(). Also with this modification i think we could get rid of the statefull widget and use stateless

  • @scalarcoding
    @scalarcoding Před 9 měsíci

    What's the point of using state management over statefulwidget?

  • @aka-Monster01
    @aka-Monster01 Před 8 měsíci

    hey can u make a video on streams too

  • @mohamedadan8552
    @mohamedadan8552 Před 10 měsíci

    Is it possible to use provider with getx in same app as state management

  • @ilya_3991
    @ilya_3991 Před 10 měsíci +2

    The provider itself is NOT a state manager. Instead the author here leverages ChangeNotifier’s functionality for the sake of state management needs. Isn’t this clear? Even Remi Rousselet - the author of Provider said his tool is not a state manager. Provider just provides objects down the widget tree.

  • @ghosttalon
    @ghosttalon Před 10 měsíci

    can you make video Bloc ?

  • @Ai_News728
    @Ai_News728 Před 10 měsíci

    brother backend full video please

  • @aka-Monster01
    @aka-Monster01 Před 8 měsíci

    i have a question do we really need consumer to make it work like we can do the same thing with getter and setter
    can u explain a bit why this not that approach

  • @mustafaadel9703
    @mustafaadel9703 Před 10 měsíci

    Can you explain bloc please?

  • @ismailhossain964
    @ismailhossain964 Před 9 měsíci

    Can you show state management for flutter web?
    I tried provider, everytime i reload provider go missing.

  • @Hariharan-wy4kv
    @Hariharan-wy4kv Před 10 měsíci

    Bro I need riverpod provider concepts

  • @haseebkahn4811
    @haseebkahn4811 Před 9 měsíci +1

    Great tutorial! I have a question, why did you continue to use the MyHomePage as a stateful widget? Couldn't we use a stateless widget now that we have the provided sat up.

    • @theseeker20210
      @theseeker20210 Před 24 dny

      From what I've gathered, the homepage needs to be a stateful widget so as to update when it receives the change notification .

  • @farrukhjaved8258
    @farrukhjaved8258 Před 4 měsíci

    class ChangeProvider extends ChangeNotifier {
    int abc = 10;
    void updated() {
    abc++;
    notifyListeners();
    }
    } why we have used the getter and setter method where we can achieve our target without them?

  • @ehis1658
    @ehis1658 Před 5 měsíci +1

    Hi Mitch thank you for this. Please I didn't understand what you did from 4:33, you explained that we can access all the methods through the "value", like when you did value.count.toString(), I didn't understand final counter = context.read...
    could we have done value.increment. please could you explain?

    • @Dipj01
      @Dipj01 Před 6 dny

      When you're inside the builder, you CAN just do value.method() with no problem.
      However, if you're outside the builder and don't have access to the 'value' argument, you can still access it's methods by context.read().method();
      This especially useful when you want to just execute some method of the model class but don't want to know it's value (in that case wrapping it in Consumer() will unnecessarily redraw it which is wasteful), so you use this instead.

  • @epichazmat
    @epichazmat Před 9 měsíci

    2:44 Why do we need to create the getter? Code works same way without it.

    • @waliazhar9460
      @waliazhar9460 Před 4 měsíci

      you need it when you getting the value of counter

  • @colinhehn
    @colinhehn Před 10 měsíci

    The splice samples go too hard