Provider 📱 Simple State Management • Flutter Tutorial

Поділитися
Вставка
  • Опубліковано 9 сер 2023
  • 💬 Chat App w/ Notifications • mitchkoko.gumroad.com/l/ChatA...
    📱 Flutter Courses • mitchkoko.app/
    👨🏽‍💻 I'm coding a startup.. / mitchkoko
    / createdbykoko
    / createdbykoko
    / createdbykoko
    💰 Book Consultation Call • mitchkoko.gumroad.com/l/CallW...
  • Наука та технологія

КОМЕНТАРІ • 78

  • @createdbykoko
    @createdbykoko  11 місяців тому +10

    💬 Chat App w/ Notifications • mitchkoko.gumroad.com/l/ChatAppMasterclass
    📱 Flutter Masterclass • mitchkoko.app/
    🔥 I'm coding a startup.. www.patreon.com/mitchkoko
    Apps I've made using Provider:
    🥑 Grocery Shop App • ua-cam.com/video/uSljGJGSl6w/v-deo.html
    📱 Coffee Shop • ua-cam.com/video/RPvhoghXn54/v-deo.html
    👟 Sneaker Shop • ua-cam.com/video/UcwsuZP071Y/v-deo.html
    I hope this helps you ✌🏾💜

    • @kashaf8863
      @kashaf8863 11 місяців тому +2

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

    • @abasilis
      @abasilis 11 місяців тому

      @@kashaf8863 Count me in! 😀

  • @philosophia5577
    @philosophia5577 11 місяців тому +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 11 місяців тому +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  11 місяців тому +1

      thank you haha sushi app coming up💜

  • @arvidd
    @arvidd 11 місяців тому +16

    Bro carrying flutter tutorials on UA-cam right now ... Keep up the good work! 👍

  • @kingsleyzuze9949
    @kingsleyzuze9949 11 місяців тому +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.

  • @thomasthemaker
    @thomasthemaker 9 місяців тому +6

    Simple & straightforward, great job Koko!

  • @indianapapi
    @indianapapi 7 місяців тому +3

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

    • @createdbykoko
      @createdbykoko  7 місяців тому +1

      My pleasure :) how is it going so far?

  • @gofullstack
    @gofullstack 11 місяців тому +8

    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 🤣🤣

  • @ibrahimruben00
    @ibrahimruben00 11 місяців тому

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

  • @BottropBoy
    @BottropBoy 11 місяців тому

    Finally! Thanks, bro!

  • @flutterIgnite
    @flutterIgnite 5 місяців тому

    Koko did it again. Much appreciated tutorial

  • @rishabhmukadams-2910
    @rishabhmukadams-2910 11 місяців тому

    Thank you so much for this tutorial ❤

  • @aaomms7986
    @aaomms7986 8 місяців тому

    You video are really quality thank man. Love u

  • @aka-Monster01
    @aka-Monster01 9 місяців тому

    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

  • @valkiprasannakumar2387
    @valkiprasannakumar2387 11 місяців тому +24

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

    • @batcracka
      @batcracka 11 місяців тому +7

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

    • @mixfruiet
      @mixfruiet 11 місяців тому +6

      Practice matter

    • @camilocharry
      @camilocharry 11 місяців тому +6

      Is practice and practice bro, don't give up

    • @GameTubegames
      @GameTubegames 11 місяців тому +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 8 місяців тому +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.

  • @e_velog
    @e_velog 11 місяців тому

    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...

  • @heberthdeza
    @heberthdeza 4 місяці тому

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

  • @metehanmete1210
    @metehanmete1210 11 місяців тому

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

  • @someshsahu4638
    @someshsahu4638 6 місяців тому +1

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

  • @pushpendra10001
    @pushpendra10001 11 місяців тому

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

  • @arslanrasit
    @arslanrasit 11 місяців тому

    FINALLY thank you

  • @PAKGOV
    @PAKGOV 11 місяців тому

    ❤ for making state managed app with provider

  • @KAIZENTECHNOLOGIES
    @KAIZENTECHNOLOGIES 11 місяців тому

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

  • @rusbeh5351
    @rusbeh5351 10 місяців тому +1

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

  • @suldanka
    @suldanka 11 місяців тому

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

  • @mansurbek046
    @mansurbek046 7 місяців тому

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

  • @programadormelhor
    @programadormelhor 4 дні тому

    Excellent channel, thanks. Can you say what tool you use for to do the channel animation, like in this video?

  • @ebuzersariyerlioglu3520
    @ebuzersariyerlioglu3520 11 місяців тому +2

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

  • @yapyh2872
    @yapyh2872 11 місяців тому

    Can you do one for Riverpod too?

  • @chrisking821
    @chrisking821 Місяць тому

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

  • @BOYGG-be8tb
    @BOYGG-be8tb 3 місяці тому

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

  • @vitalyuchter
    @vitalyuchter 3 місяці тому

    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?

  • @muadzrosli
    @muadzrosli 11 місяців тому +1

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

  • @ismailhossain964
    @ismailhossain964 10 місяців тому

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

  • @aka-Monster01
    @aka-Monster01 9 місяців тому

    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

  • @tsk8349
    @tsk8349 10 місяців тому

    Can I do state management by using hive db

  • @romixraoera1358
    @romixraoera1358 11 місяців тому

    thanks

  • @MohammadAlbazel
    @MohammadAlbazel 9 місяців тому

    Could you please apply the stacked package?

  • @mohamedadan8552
    @mohamedadan8552 11 місяців тому

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

  • @AppyBuilder
    @AppyBuilder 4 місяці тому

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

  • @ettitaiwo1642
    @ettitaiwo1642 20 днів тому

    Hi
    Please do a video on riverpod ❤❤

  • @ettitaiwo1642
    @ettitaiwo1642 11 місяців тому

    Can you make a video on multiple providers

  • @scalarcoding
    @scalarcoding 10 місяців тому

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

  • @poisonels8023
    @poisonels8023 10 місяців тому

    Video on flutter common erros

  • @joaopaulolima9612
    @joaopaulolima9612 4 місяці тому +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

  • @aka-Monster01
    @aka-Monster01 9 місяців тому

    hey can u make a video on streams too

  • @mustafaadel9703
    @mustafaadel9703 11 місяців тому

    Can you explain bloc please?

  • @ehis1658
    @ehis1658 5 місяців тому +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 26 днів тому

      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.

  • @Hariharan-wy4kv
    @Hariharan-wy4kv 11 місяців тому

    Bro I need riverpod provider concepts

  • @ghosttalon
    @ghosttalon 11 місяців тому

    can you make video Bloc ?

  • @haseebkahn4811
    @haseebkahn4811 9 місяців тому +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 Місяць тому

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

  • @mohammedalhinawy8238
    @mohammedalhinawy8238 11 місяців тому

    💜

  • @SEGVeenstra
    @SEGVeenstra 11 місяців тому +2

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

    • @VigilantKwao
      @VigilantKwao День тому

      Naa, you would get an error, tried it

  • @gyanupadhyay9473
    @gyanupadhyay9473 11 місяців тому +2

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

    • @gofullstack
      @gofullstack 11 місяців тому +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

  • @farrukhjaved8258
    @farrukhjaved8258 4 місяці тому

    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?

  • @Ai_News728
    @Ai_News728 11 місяців тому

    brother backend full video please

  • @epichazmat
    @epichazmat 10 місяців тому

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

    • @waliazhar9460
      @waliazhar9460 5 місяців тому

      you need it when you getting the value of counter

  • @ilya_3991
    @ilya_3991 11 місяців тому +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.

  • @colinhehn
    @colinhehn 10 місяців тому

    The splice samples go too hard