Flutter Provider Tutorial (State Management)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 108

  • @BenjaminCarlson
    @BenjaminCarlson  3 года назад +45

    Hey guys, I tried a different style for todays video. Let me know if you like it!

    • @ecoflex0030
      @ecoflex0030 3 года назад +3

      A new audience here. Not sure about the previous style, but this video fits me pretty well! Thanks for sharing the video!

    • @logicgates8944
      @logicgates8944 2 года назад

      very informative video; thank you

  • @xtraszone
    @xtraszone 3 года назад +12

    This video helped me a lot. Not because of provider tutorial but because of adding multiple providers in an app.

    • @muhammadabdullah668
      @muhammadabdullah668 3 года назад

      I'm still stuck in adding Multiple providers...... Getting error

  • @benjieming7232
    @benjieming7232 2 года назад +13

    Pretty simple, no trivia and I like the way you explain it to others. The best guide about provider package in Flutter.

  • @sidilain5533
    @sidilain5533 2 года назад

    The first non indian person how perfectly explain fast and great (it's just a joke) thanks, you won a suscriber!

  • @Septix
    @Septix 3 года назад +10

    Best state-management for Flutter HANDS-DOWN. Have scoured tons of videos that make everything more complex than it should be. Thank you for the no BS, straight to the point video mate.

  • @hackpiece3094
    @hackpiece3094 3 года назад +29

    Straight-forward and to the point! Great :)

  • @frankmeiale4120
    @frankmeiale4120 2 года назад +1

    Thank you so much for doing this video! I searched tons of videos before, but they added an unnecessary complexity in the explanation. Your video was short, concise and very clear! Thank you again for your work!

  • @mohammedyousef9090
    @mohammedyousef9090 2 года назад +2

    By far the best tutorial for Flutter Provider, very useful and great way of organizing the sequence of information, rather than setting things up first the boring way, you made it as dynamic and as fluid as possible which allowed for the best learning experience, thanks a lot.

  • @jaydipviirani2112
    @jaydipviirani2112 2 года назад

    I seen many videos but I understand easily as biginner by watching your video thank you so much...

  • @cholasimmons
    @cholasimmons 2 года назад +2

    I've watched about 20 different videos on different state management tools and this one made sense instantly!! Thank you sir. You have earned a subscriber
    note: i had to add "heroTag: null" on all FABs to avoid a terrible migraine 😪

  • @khmiri
    @khmiri Год назад

    Straight to the point, without any additional blabla... Thanks mate❤

  • @zenal1520
    @zenal1520 2 года назад +1

    thank you man I have been struggling for months to understand what is state management and how providers works 👍

  • @amuthuateratawasiyo
    @amuthuateratawasiyo 2 года назад +1

    Thankx, Explained well

  • @TheMoralescl
    @TheMoralescl 2 года назад

    This should be the BEST video in Flutter State Management. Thank you for your time.

  • @shaderone07
    @shaderone07 2 года назад

    wow this is perfect for complete beginners to provider

  • @popbob4780
    @popbob4780 2 года назад +1

    4K 60 quality my man respect

  • @akr28038
    @akr28038 Год назад

    thanks so much bro, ur tutorial was the best and to the point, idk y others were making like 30 min videos on it...u saved me, thanks again!

  • @yyujuykuyh1
    @yyujuykuyh1 Год назад

    Really clear and concise tutorial!

  • @MxMayers
    @MxMayers 3 года назад +1

    Best simple lesson about provider!

  • @dxb_coder
    @dxb_coder 2 года назад

    That's what I was looking for .... thanks for the video!

  • @iipapaploy6141
    @iipapaploy6141 2 года назад

    thanks for your video and source code I've been stuck in this problem for 4-5 hours, but you can solved it for me. Thank you very much

  • @MegaTrueHD
    @MegaTrueHD 2 года назад +1

    honestly very helpful

  • @kyrieirving6301
    @kyrieirving6301 Год назад

    Pretty good teaching!

  • @jayflo_tech
    @jayflo_tech 2 года назад

    This is the best explanation out there.

  • @19pixels
    @19pixels Год назад

    Thank you for this. This is a great video indeed

  • @BillBrutzman
    @BillBrutzman 2 года назад +1

    Outstandingly good and clear. Thanks very much.

  • @ahmedfetni9349
    @ahmedfetni9349 2 года назад

    that was simple and straight to the point explanation. thank you

  • @aleksanderw12378
    @aleksanderw12378 Год назад

    Great video and thank you

  • @dolidoola
    @dolidoola Год назад

    thanks man that was a good explanation

  • @dnyandabhujbal9871
    @dnyandabhujbal9871 2 года назад

    Awesome tutorial

  • @adoniaskidane4657
    @adoniaskidane4657 2 года назад +1

    Well explained, Thank you!

  • @kashifimam3710
    @kashifimam3710 2 года назад

    Nice one really helped.

  • @vibhor1386
    @vibhor1386 2 года назад +1

    Thanks a lot man :)

  • @alexapps3008
    @alexapps3008 2 года назад

    Someone told me riverpod is better, but from this video i feel provider much better for my brain wires :) Thanks and can you make more coplex usages video.

  • @PS-cc3pz
    @PS-cc3pz 3 года назад +1

    Straight to point and concise. thanks!

  • @pisethnong7579
    @pisethnong7579 Год назад

    Very great video, thanks

  • @iGhostr
    @iGhostr 3 года назад +2

    Thank you for the explanation!

  • @sachindraragul1094
    @sachindraragul1094 2 года назад

    Cool. I love flutter

  • @lucamartinsm
    @lucamartinsm 2 года назад

    I was looking for that, what a great content, thanks mate

  • @maikoe7198
    @maikoe7198 2 года назад

    really liked the video, thanks for the tutorial

  • @TzStories
    @TzStories 2 года назад

    thanks bro it was very clear and easy

  • @gronccoravioli
    @gronccoravioli 3 года назад +1

    Thanks, this was reeeally helpful

  • @sundoel
    @sundoel Год назад

    thank you so much, your explaination is easy to understand

  • @jewjam
    @jewjam Год назад

    Thank you so much!

  • @amiteshverma3558
    @amiteshverma3558 2 года назад

    Really helpful

  • @张哲-l5e
    @张哲-l5e 2 года назад

    不错啊,very good!

  • @cherriepie
    @cherriepie 2 года назад

    Thank you Ben, great tutorial 👍🏼

  • @cjw6659
    @cjw6659 2 года назад

    excellent video. Thank you.

  • @kaushalyaroshan
    @kaushalyaroshan 2 года назад

    Great tutorial🥰

  • @adhdaddventure
    @adhdaddventure 2 года назад

    Awesome. What about when you navigate from a screen to another and you want to reset the state on dispose for example

  • @Harvinderkaur2040
    @Harvinderkaur2040 2 года назад +1

    Thanks

  • @MujahidKhan-eo7hx
    @MujahidKhan-eo7hx 2 года назад +1

    Shouldn’t you remove the Text() from parent widget (5:28) when you made separate Count widget ???

  • @TorstigHjalmr
    @TorstigHjalmr 2 года назад

    That background music at 1.5x playback...wow!

  • @medetkadyrov691
    @medetkadyrov691 2 года назад

    so good

  • @Rubenhood97
    @Rubenhood97 Год назад

    I used very nice

  • @Dhruvsaxena19
    @Dhruvsaxena19 3 года назад +2

    Great video and well explained. I've one question tho, can we use this provider state without using context.read and context.write, seems like we have to register all of our state modules in multiProvider at first is there any other way then this ?

  • @pawtter_ink
    @pawtter_ink 2 года назад

    For people Studying from this date beyond and getting the 'Hero tag' exception and not working when going to the second page: add heroTag: 'someName', for each button just after the Key or before.

  • @husnulaqib5303
    @husnulaqib5303 2 года назад

    thanks

  • @imanboudella3106
    @imanboudella3106 2 года назад

    thank u

  • @azhagappankathiresan5338
    @azhagappankathiresan5338 2 года назад

    how to share data between multiple providers? For example, i have userid in loginprovider and i want to read it from profileprovider. How to do that?

  • @BrianTX541
    @BrianTX541 2 года назад

    with the latest version of flutter 2.10.2, you will need to set the heroTag property when you have more than one floatingActionButton per route.

  • @KiranVishwak
    @KiranVishwak 2 года назад +1

    Hey, a beginner here. Is the getter that you use to access _count needed? Cant we just use count itself?

    • @BenjaminCarlson
      @BenjaminCarlson  2 года назад

      getters and setters are optional, however they are good practice for writing clean, scalable code. Check out this link: stackoverflow.com/questions/56997961/are-getter-and-setter-needed-in-dart-programming

    • @KiranVishwak
      @KiranVishwak 2 года назад

      @@BenjaminCarlson thanks

  • @khalifaomani1242
    @khalifaomani1242 2 года назад

    when i update value from second screen , value not updated in first screen ! how to update for all screens ?

  • @mike_zander
    @mike_zander 2 года назад

    What if you had three counters, how do you update each one separately?

  • @Pal.Aditya
    @Pal.Aditya 2 года назад

    your stateless widget rebuild again and agin when you click on-pressed just add print statement in build context and check

  • @delarammajestic2502
    @delarammajestic2502 3 года назад +1

    Hi thanks for the great content please make more videos about provider i have a little question : in the second page we have a floating action button that is responsible for reading the data from count class "and" adding the data to the list .. isnt it a kinf of rebuild fpr the widget ?? or am i mistaken ? i have read the documentation for the read method and inside it i have encountered something called "select" ... in your perspective wouldnt be better to use select here ? ... i appreciate your advice in advance

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      could you tell me what line and what file name you are referring to?

    • @delarammajestic2502
      @delarammajestic2502 3 года назад

      @@BenjaminCarlson i will let you know as soon as possible ...

    • @delarammajestic2502
      @delarammajestic2502 3 года назад

      @@BenjaminCarlson second screen.dart is the page and im refering to the on press callback of the floating action button ....which you have provided this line of code : contex.watch.addItem('bread'); wouldnt be better if we use select here ?

  • @muhammadrasul1581
    @muhammadrasul1581 3 года назад

    i have never understood Providers the way i do now, a huge thank here, so does the counter preserves the value? i mean will it work like a SharedPreferences method that preserves values(i mean you don't need to save the data because providers do it)?

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад +1

      you will have to save the data too. Provider just helps you a bit

  • @deepjyotibaishya7576
    @deepjyotibaishya7576 2 года назад

    how to use in Navigation page route ?

  • @MathComputerScienceTradi-ge7tw
    @MathComputerScienceTradi-ge7tw 3 месяца назад

    What’s the difference between .read and .watch

  • @peacock4020
    @peacock4020 Год назад

    Hay man.. its a great video but can you plese remove the background music??? we are learning new things and watching a lots of video or blog to understand how the code work and none of us i think on the mode to hear that type of music... its kind of anyoning ...

  • @nifesiodumirin5001
    @nifesiodumirin5001 3 года назад

    what material icon extension did you use ?

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад +1

      I am using VSCode icons marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons

  • @sankalpamokal9186
    @sankalpamokal9186 3 года назад

    How to call initstate if we are using stateless widget in this architecture?

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад

      there is no init state method in a stateless widget

  • @shashwat_dubey_
    @shashwat_dubey_ 3 года назад

    con someone explain me the use of getter. why we used get to store the value of _count again to count?

    • @prabinmaharjan5150
      @prabinmaharjan5150 2 года назад

      _count is private variable which can't be accessed directly outside the class, so we need to use getter

  • @samrat_10k
    @samrat_10k 2 года назад

    why music :(

  • @szyszak9424
    @szyszak9424 Год назад

    5:04

  • @abdulrafay1951
    @abdulrafay1951 3 года назад +2

    Very loud music and not matching with tutorial bro

    • @BenjaminCarlson
      @BenjaminCarlson  3 года назад +1

      It doesn't seem loud on my computer, are you using headphones? Maybe thats why

    • @nested9301
      @nested9301 3 года назад

      Nah it's not loud

  • @aymanomara8468
    @aymanomara8468 2 года назад

    Provider.of

  • @RtlDev-n9g
    @RtlDev-n9g Год назад

    usual example, nothing new

  • @hamzamalik2533
    @hamzamalik2533 Год назад

    well explained :)

  • @anaselboudali2824
    @anaselboudali2824 2 года назад

    thanks

  • @shahkaruzair
    @shahkaruzair 2 года назад

    Thanks

  • @leandroschmidt1292
    @leandroschmidt1292 2 года назад

    Thanks