provider in Flutter | Better State Management using Provider | Best Flutter Packages #5 | Hindi

Поділитися
Вставка
  • Опубліковано 30 лип 2024
  • Sign up for 10,000 free minutes: bit.ly/3jyzOPl
    Find out more about ZEGOCLOUD: bit.ly/3VFR96F
    How to build video call app: bit.ly/3WLEbVO If you wanna learn 1 on 1 from me, DM me on Instagram (@rohitsemriwal): / rohitsemriwal
    Chapters:
    00:00 Introduction
    00:45 Provider Explanation
    03:36 Making the UI
    06:48 Installing the provider package
    07:40 Part 1 - ChangeNotifier
    12:25 Part 2 - ChangeNotifierProvider
    14:15 Part 3 - Consumer
    15:43 Revision
    17:22 Using the data inside the provider
    20:07 Benefits
    22:25 Wrapping Up
    In this episode, we'll be taking a look at the provider package and using it to make our state management more efficient and the code more readable and structured.
    This video is focused on complete beginners who are finding it difficult to understand the concept of provider and how to use it to manage states.
    Don't forget to subscribe so you don't miss out on any future updates.
    #flutter #dart #flutterprovider

КОМЕНТАРІ • 157

  • @safeerhussain7371
    @safeerhussain7371 6 місяців тому +2

    i watched 10+ other videos but you are awesome because you explain with very good and relatable examples.

  • @technicalguy.
    @technicalguy. Рік тому +1

    Literally you're such an amazing explainer, One of the best explanation on entire UA-cam, keep going... Btw thanks for this video. (Subbed)!

  • @AshutoshKumar-jl5vu
    @AshutoshKumar-jl5vu Рік тому +1

    hindi me sun ke aur ache se smjh aata h. English me confusion reh hi jata h kahin na kahin. acha video hai thanks

  • @immortalgaming958
    @immortalgaming958 2 місяці тому

    Bhut videos dekhi thi kuch smj ni aaya ....Bhai kamaal ki video thi sab smj aagya 🙏thanks

  • @saifazam5838
    @saifazam5838 Рік тому

    🙏🙏🙏🙏 bro your way of teaching is too good, I've watched a lot of videos on state management, but I wasn't understanding well, lekin aaj ache se smjh aagaya, your content is excellent please make more videos on a big project with the provider.

  • @acornerofherheart-jr9pl
    @acornerofherheart-jr9pl 15 днів тому

    super explanation on this topic i have ever seen on youtube..wonderful

  • @SAURABHGUPTA_DINOSAUR
    @SAURABHGUPTA_DINOSAUR Рік тому +1

    dude you deserve a million subs mahn ssly, you're the best sir!

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

    Well Explained. Easy to implement. Thanks

  • @nimraghazal4942
    @nimraghazal4942 2 роки тому +4

    I really become a fan of your easy-to-explain strategy! well done ! Really Appreciated.

  • @nimraghazal4942
    @nimraghazal4942 2 роки тому +3

    You explained it so well that it's the first time I get the provider functionality!

  • @abhisheknigam6975
    @abhisheknigam6975 2 роки тому +1

    Today only I was looking something around state management, but your video is not just great, actually it is awesome. Thanks for creating such an easy & clear way of explanation. Thanks Once Again

  • @parthsarthi360
    @parthsarthi360 Рік тому

    Keep it up bro ..... Really nice work by you ....... Expecting some topic with some simple examples

  • @ArjunSinghh
    @ArjunSinghh 2 роки тому +1

    I find this topic here but i need understand with Google map..
    You did great work

  • @KrishNamaste
    @KrishNamaste Рік тому

    really you have done an amazing job! i got the concept in one go! thank you!

  • @aqeelmughal4388
    @aqeelmughal4388 Рік тому +1

    Thanks Brother... You explained very well. The Example was so realistic. Keep posting such a great stuff... Keep going. .... Hey... you got a subscriber....

  • @priyanshupatra2100
    @priyanshupatra2100 Рік тому

    Earned respect & subscriber bro❤❤

  • @ashwithchandra2622
    @ashwithchandra2622 2 роки тому

    Excellent explanation really helped me a lot. I think this is enough for my project!! 👌👌👌

  • @someshsahu4638
    @someshsahu4638 Рік тому +1

    Nice video thankyou 🙏🏼

  • @sahilgupta7170
    @sahilgupta7170 Рік тому

    Rohit bhai mast padhaaya 🤝

  • @movie_explainer_free
    @movie_explainer_free 2 роки тому +1

    The cool thing is how he easily explained Thanks a lot👍👍👍👍👍👍👍👍👍👍👍👍

  • @muneebshahzad1335
    @muneebshahzad1335 Рік тому

    that's fantastic

  • @rdbhandarix
    @rdbhandarix Рік тому

    THANK YOU !!

  • @hemabhatia8662
    @hemabhatia8662 Рік тому +1

    I'm studying in Australia. I got confused in this topic and Guess what I got your lecture ok time .... Nyc explained

  • @sowmocoding5740
    @sowmocoding5740 2 роки тому

    probably the finest and simplest provider video ever! Make some moreeeeeeeee!

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      Firebase series starting this Tuesday!

    • @sowmocoding5740
      @sowmocoding5740 2 роки тому

      @@RohitSemriwal YESS YESS! Please add some provider into it. I really have a hard time working on complex queries like one collection into another - kind of these issues. It will be a great help!

  • @parasjangid8077
    @parasjangid8077 Рік тому

    Thank you ❤️

  • @moazzamali9607
    @moazzamali9607 Рік тому

    Awesome Explanation🤩

  • @ritiksaxenaofficial
    @ritiksaxenaofficial Рік тому

    Well explained. Good job

  • @durgeshmamdapure
    @durgeshmamdapure 2 роки тому

    Excellent Explanantion👏👏👏

  • @hiteshlalwani939
    @hiteshlalwani939 Рік тому

    Super Awesome Sir
    Thank you so much for this beautiful explanation

  • @go2collage
    @go2collage 2 роки тому

    Nice video 👌. Make video on GetX. And one video on State management tools 👍.

  • @shahidwani6445
    @shahidwani6445 2 роки тому

    Love ur all videos

  • @shahkaruzair
    @shahkaruzair Рік тому

    Simple and informative thanks

  • @KrishnaKumar-qx1mk
    @KrishnaKumar-qx1mk 2 роки тому

    Crystal clear 👌

  • @MahenderKumar92700
    @MahenderKumar92700 Рік тому

    Very well explained and a subscriber gained.

  • @axayvekariyacodeflash8203
    @axayvekariyacodeflash8203 Рік тому

    superb

  • @uveshsiddiqui2477
    @uveshsiddiqui2477 2 роки тому

    Great explain

  • @dev.faizan
    @dev.faizan Рік тому

    excellent 👌👌👌👌

  • @shardams
    @shardams 2 роки тому

    explained very well

  • @soumyajitdas3162
    @soumyajitdas3162 2 роки тому

    Aap bohot acche se samjhaye
    Mai request karunga please agar aap ekdam base e flutter ke ek course dete to bohot accha hota

  • @ankitnagar9184
    @ankitnagar9184 Рік тому

    best sir

  • @dramaticsports
    @dramaticsports 2 роки тому +1

    Love💕 from outside the border .
    make a series on provider bro bcz everyone looking for series on provider .Thank you

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      Thanks for the support 😁, I'll make a series soon.

  • @amealiotemp7820
    @amealiotemp7820 2 роки тому +2

    Very easily explain with example awesome video 👍👍👍🙏
    Keep Going
    Please make video for bloc state managements 🙏

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      Thanks for the compliment, I've already started a series on BLoC. You can find it here:
      ua-cam.com/play/PLr7P7lMIUTuvDBbmq66Kwz_OEt_7U9fLH.html

    • @amealiotemp7820
      @amealiotemp7820 2 роки тому

      @@RohitSemriwal thanks 🙏😊

  • @jayswalviraj4528
    @jayswalviraj4528 2 роки тому +1

    Please sir Block ke baad testing ka video bhi banahi dena full description ke saath.

  • @MDFahim-oz3xf
    @MDFahim-oz3xf 2 роки тому

    Thank you!

  • @jaydipviirani2112
    @jaydipviirani2112 Рік тому

    your tutorial is good but plz make video on latest provider dependency

  • @ankitbisht4990
    @ankitbisht4990 2 роки тому

    Thank you bhai ❤️

  • @Saansh6462
    @Saansh6462 2 роки тому

    thanks. great

  • @somnathdas8922
    @somnathdas8922 2 роки тому

    Bro just now I find your youtube channel. You make a gold mine.

  • @binaykumarvlog
    @binaykumarvlog Рік тому

    Thank YOU

  • @khubaibirfan9215
    @khubaibirfan9215 2 роки тому

    Awesome video❤️love from Pakistan

  • @proboy1739
    @proboy1739 Рік тому

    How you explain this is talent thanks

  • @javaclass8379
    @javaclass8379 2 роки тому

    Perfect

  • @8121GautamJethva-gq3lh
    @8121GautamJethva-gq3lh Рік тому

    Bro u not using in MVP pattern in model class

  • @rahulkhandelwal7034
    @rahulkhandelwal7034 Рік тому

    Nicely explained 🙂🙂
    Pls make project videos on provider

  • @meditationplanet2698
    @meditationplanet2698 2 роки тому +3

    Devil is back

  • @almamun2565
    @almamun2565 2 роки тому +2

    Thank you! Good one, do you mind to make a CRUD video for ChangeNotifierProxyProvider with Firestore?

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      Sure, will do in the future. Thanks for watching! 😁

  • @jamalkhan-my4tg
    @jamalkhan-my4tg 2 роки тому

    Make video role base authorization please 🥺

  • @nikkigateway
    @nikkigateway Рік тому

    sir i have some problem in using provider . can u help me.

  • @phantom1429
    @phantom1429 2 роки тому +1

    riverpod is stable now please make video on it.

  • @keteretsu9252
    @keteretsu9252 2 роки тому

    Best possible explanation....Thank you _/\_

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

    Bro multi provider bi suna tha , wo kia hota ha

  • @keteretsu9252
    @keteretsu9252 Рік тому

    revisiting for revision _/\_

  • @sitanshuchampatiray9125
    @sitanshuchampatiray9125 2 роки тому

    good job bro
    one more video for json call using provider

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      You can check out the Crypto Tracker Series. We've used provider for state management in that one.
      Here's the link: ua-cam.com/play/PLr7P7lMIUTus1UtB3s-b2PCY4nyeRp2mQ.html

  • @pankajshellcode
    @pankajshellcode Рік тому

    MVVM With Provider Pe VIdeo Lao

  • @lalitkishorsharma3831
    @lalitkishorsharma3831 Рік тому

    Sir create video proxy provider in flutter

  • @faizshaikh1673
    @faizshaikh1673 2 роки тому

    Bhaii Api integration & Shared Preference pe bhii video banao naaa pls your exaplanation is awesomeeeee......................

  • @vivekprasad2703
    @vivekprasad2703 2 роки тому

    Very good video brother 👍😊👍 keep it up.
    Now plz maka a project with provider

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      That's the plan 😁

    • @vivekprasad2703
      @vivekprasad2703 2 роки тому

      @@RohitSemriwal kab aa rahi hai series provider ki

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      What project should we do?
      1. Cryptocurrency Price Tracker
      Or
      2. Todo List

    • @vivekprasad2703
      @vivekprasad2703 2 роки тому

      @@RohitSemriwal crypto currency price tracker 😊

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      Ok, I'll plan out the series and then start making videos as soon as possible 😁

  • @hassamkayani2521
    @hassamkayani2521 Рік тому

    Cunsumer ma b error a rha hye

  • @musicTunedIn
    @musicTunedIn 2 роки тому

    Please make a video on getx too

  • @hassamkayani2521
    @hassamkayani2521 Рік тому

    child: Padding(
    padding: const EdgeInsets.all(20.0),
    child:ChangeNotifierProvider( ///yea ChnageNotifierProvider ma Error day rha hye ..Dependencies sari add kar di han tb b

    ),

  • @muhammadjavedrafique4592
    @muhammadjavedrafique4592 2 роки тому

    sir g kamaaal krdiaaaaaaaaaaaa loveeeeee from pakistannnnnnnnnnnnnnnnnnnnnnnnnnnn

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      Glad it helped! Thanks for the support 😁

  • @pankajkhairnar621
    @pankajkhairnar621 2 роки тому

    भाई व्हिडिओ बहोत अच्छी है पर बॅकग्राऊंड मे जो घटीया music नही चाहिए. It spoils the video
    Thanks for great video

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      Thanks for the feedback! Glad you liked the video 😁

  • @workinglate3595
    @workinglate3595 2 роки тому

    Nice video

  • @jayswalviraj4528
    @jayswalviraj4528 2 роки тому +1

    Hello Sir,
    Flutter app ko debug kese kare?
    Thanks for giving me your important time

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      Here are some tips:
      1. Use print or log commands to print the value of a variable while debugging. It will help you in knowing exactly where the problem is occuring.
      2. You can set breakpoints in your IDE to stop the code when it reaches a specific point and then you can continue manually from there to see the problem.
      3. You can analyze your code by using the 'flutter analyze' command in the terminal.
      Note: These are not the only possible ways to debug. You can refer to the official flutter documentation for more ways to debug your app.

    • @jayswalviraj4528
      @jayswalviraj4528 2 роки тому

      @@RohitSemriwal Thnks sir

  • @haseebsid8781
    @haseebsid8781 2 роки тому

    bro class name ke age jo "with" or sometime "extend" q lagate hai hai aur dono me diffrence kya hai

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      Check out this link, it covers everything in detail:
      www.geeksforgeeks.org/dart-extends-vs-with-vs-implements/

  • @shahidwani6445
    @shahidwani6445 2 роки тому

    Sir, can u please make video series on GetX i think GetX is very good in everyway than provider or bloc

  • @AzfarRehmanV
    @AzfarRehmanV 2 роки тому

    Sir can you please add the (seeing functionality like double blue ticks+some one is typing )like functionality

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      Yes, in the near future. In the meantime, try to do it on your own😁

    • @AzfarRehmanV
      @AzfarRehmanV 2 роки тому

      @@RohitSemriwal i am trying :(

  • @johnmartin9329
    @johnmartin9329 Рік тому

    i think getx is much easier to understand and to implement insist of BLOCK and provider

  • @mustafasidhpuri1368
    @mustafasidhpuri1368 2 роки тому

    i want to reset the provider after I logout, how can I do it?

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      Just set the values inside the provider to the initial ones, for example: userModel = null;

  • @haroonrehman8156
    @haroonrehman8156 Рік тому

    why not to use the changenotifierprovider in the textfield instead of column i guess it will improve the perormance because it you have more children in column then just text field then they will also rebuild so having the changenotifierprovider on just the textfield would be more efficient. Correct me if I am wrong please.

    • @RohitSemriwal
      @RohitSemriwal  Рік тому

      Yes, if the column has more children other than what you need to rebuild, it's better to wrap them separately with ChangeNotifierProvider.

  • @jayswalviraj4528
    @jayswalviraj4528 2 роки тому

    Hello Sir,
    Question: Hum flutter me testing ka use kyo karte hai?
    Thank You For Giving Me Your Important Time.

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому

      Testing zaruri hoti h hamare users ko ek bug free experience dene ke liye.
      Lekin ek badi app me har ek feature ko manually check krna bohot time consuming hota h.. to us case ham automated testing krte h.
      Uske bina bhi ofcourse launch ki jaa skti h app par wo bohot important hota h kyuki app ka user experience hamesha jitna ho sake bug free ho.

    • @jayswalviraj4528
      @jayswalviraj4528 2 роки тому

      Thanks sir

  • @coolsantosh6535
    @coolsantosh6535 Рік тому

    Hello sir bloc vs getx vs provider which is best ....which should I learn

    • @RohitSemriwal
      @RohitSemriwal  Рік тому +1

      I'll say BLoC is better than both Provider and GetX when it comes to making large, maintainable apps. But GetX will be a better choice than Provider.
      You can also try out Riverpod, it's basically Provider with superpowers.

    • @coolsantosh6535
      @coolsantosh6535 Рік тому

      Thank you for your advice 😊

  • @shashwat_dubey_
    @shashwat_dubey_ 2 роки тому +1

    14:22 you do not have to do it like that! just hover around the widget, click the bulb icon and select "Wrap with widget".
    Nice tutorial btw.

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      I don't know if it's specific to me but when I select "Wrap with Widget" it messes up the spacing😂

    • @shashwat_dubey_
      @shashwat_dubey_ 2 роки тому +1

      @@RohitSemriwal what?! 😂😂 Its specific to you!

  • @jayswalviraj4528
    @jayswalviraj4528 2 роки тому

    Sir flutter me hum android app banate hai or ios app bhi banate hai to is dono ko banane me differences kya hota hai?

    • @RohitSemriwal
      @RohitSemriwal  2 роки тому +1

      Code ham ek hi likhte h lekin deployment ke time pe dono ka alag alag process hota h.
      Aur kuch packages ko setup krne ka process bhi alag hota h.
      Lekin code pura same hi rehta h wo automatically convert ho jaata h Android or iOS dono ke liye.

    • @jayswalviraj4528
      @jayswalviraj4528 2 роки тому

      @@RohitSemriwal Thank you sir. You are Very helpful.

  • @user-mi6xd1jn7r
    @user-mi6xd1jn7r 5 місяців тому

    Background music is not 🚫

    • @RohitSemriwal
      @RohitSemriwal  5 місяців тому +1

      That's fixed in the newer videos. Thanks for the feedback.