Flutter Riverpod 2 Tutorial for Beginners | Riverpod Generator

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 165

  • @RandalLSchwartz
    @RandalLSchwartz Рік тому +38

    In your StreamProvider example, you're not returning 10 items in a stream, you're returning a single item that is a List of 10 elements. In other words, had you showed the type of the StreamProvider, it would have been StreamProvider. It would have made more sense to show a StreamProvider, and for that you would need to change your yield to a for-in loop, possibly with a delay to see the stream slowly being dribbled out.

    • @RivaanRanawat
      @RivaanRanawat  Рік тому +23

      Some more inaccuracies in this tutorial mentioned by Randal on Reddit. Please take a look at it.
      > Doesn't show generated classes, but that would have taken another 20 minutes. :)
      > Incorrectly describes some of the legacy providers as not redone yet, when in fact AsyncNotifier and Notifier can replace pretty much everything except StreamProvider, and I understand that's on the way.
      Thanks for taking the time and pointing it out Randal, really appreciate it!

    • @anshumansharma2251
      @anshumansharma2251 Рік тому +7

      here is that example
      final streamProvider = StreamProvider((ref) async* {
      for (var i = 0; i < 20; i++) {
      yield (i);
      await Future.delayed(Duration(seconds: 2));
      }
      });

    • @RivaanRanawat
      @RivaanRanawat  Рік тому +3

      @@anshumansharma2251 Thanks Anshuman!

  • @codewithihsan2182
    @codewithihsan2182 9 місяців тому +8

    In Simple words if someone want to become Pro in flutter then i think Rivaan is best Option.
    Thank you so much Rivaan .

  • @DanielTubul
    @DanielTubul Рік тому +7

    Wow, such a clean tutorial and very helpful + straight to the point. I'm 20 mins in with my ADHD and didn't stop because of curiosity and enjoyment. Although I already know many of the concepts of Riverpod.
    Good job!!!

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

    no bla bla... meticulously planned and executed teaching approach. Thank you so much for your valuable time Rivaan

  • @_DiftaFitrahulQihaj
    @_DiftaFitrahulQihaj Рік тому +3

    sir you're the best teacher of riverpod, i've watched many riverpod tutorial and just from you i deeply understand the riverpod is

  • @willystain9870
    @willystain9870 Рік тому +4

    Rivann Thank you so much for your videos.... I dont know why but every time you explain it makes perfect sense for me and its really easy to understand. Good Job!

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

    i've been watching videos of provider for exactly a week, this one is the best, it considers the viewer a complete begginer which is really appretiate.
    Thank you!

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

      Glad it was helpful Moha! Thanks for the tutorial review, appreciated 🙂

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

    Best Riverpod tutorial !!!! The thing that makes the difference is the clarity in explanation! Thank you so much Rivaan!

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

    i have came across this video for like 100 times. whenever i need a recap about riverpod im here 😅😅 great video❤❤

  • @fabsync
    @fabsync Рік тому +2

    one of the best videos on riverpod topic.. I am ready for the next one with practical examples..
    -> best folder structures for riverpod when
    - building a web crawler
    - newsfeed...
    - simple real time chat (any open source database but firebase or amplify --> love appwrite and serverpod..)

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

      Noted! Project with Riverpod + Appwrite is already in work!

    • @SwarajSingh-xs6dy
      @SwarajSingh-xs6dy Рік тому

      @@RivaanRanawat Please note another product udemy clone with flutter and nodejs

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

      @@SwarajSingh-xs6dy Yep, got multiple requests for it.

  • @aleksanderwieland6668
    @aleksanderwieland6668 Рік тому +5

    Thanks Rivaan, this video is great! There are very few people that can explain flutter topics as simply as you!

  • @thatsepic371
    @thatsepic371 Рік тому +2

    Thanks rivaan you always make everything easy great tutorial I was confused and didn't know where to start and you showed up you are one of the best teachers for flutter community

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

      That's epic! Happy you found it helpful 🙂

  • @vishwajeetpatil9381
    @vishwajeetpatil9381 Рік тому +2

    Thanks for the excellent tutorial.
    In the StreamProvider example (01:13:52), you are returning a constant list. Adding for loop and delay will be more helpful in understanding the change in the stream.
    final streamProvider = StreamProvider((ref) async* {
    const int max = 20;
    List list = [];
    for (int i = 0; i < max; i++) {
    await Future.delayed(const Duration(seconds: 1));
    list = [...list, i];
    yield list;
    }
    });

    • @RivaanRanawat
      @RivaanRanawat  Рік тому +3

      Yup, that's right! I made this mistake while explaining StreamProvider. Hope this comments help someone so that they can understand better

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

      Thanks vishwajeet patil

  • @roninspect4357
    @roninspect4357 Рік тому +3

    I was searching for riverpod for beginner and you uploaded it 🙌

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

      Hope it helps!

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

      Is it lso.also begginer strat with this or do i need to learn one of them of block getx or provider?

    • @RivaanRanawat
      @RivaanRanawat  Рік тому +2

      @@justworkfine321 No prior experience with any state management tool is required.

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

    thanks for explaining stateNotifierProvider so well. It took me an hour to practice and learn every detail you explained...

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

    Thanks Vai . badly needed this ❤❤❤❤❤❤ love from Bangladesh 🇧🇩

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

    you are doing amazing things for your age, more power to your elbow 👏👏👏👏👏

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

    One of the best video to learn riverpod, you have so much clarity in explanation, i love watching your videos superb channel great work🥰

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

      Thank you very much Suresh, glad you like them!!

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

    Your videos and explanations are awesome.

  • @RandalLSchwartz
    @RandalLSchwartz Рік тому +12

    You can make the part file with a snippet from the riverpod snippets... it even picks up the filename properly.

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

    I watched many riverpod tutorials and this guy knows what he is teaching. Thanks

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

    Man! Thanks a lot, Rivaan! All your tutorials have helped me a lot. Looking forward to seeing you make a finance app with Flutter.

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

      Happy to hear that Sunjo! Will get to finance app as soon as possible.

  • @RivaanRanawat
    @RivaanRanawat  Рік тому +11

    Riverpod Project Tutorials:
    9.5 Hour Reddit Clone: ua-cam.com/video/B8Sx7wGiY-s/v-deo.html
    5 Hour Google Docs Clone: ua-cam.com/video/W6vAQdzLcu4/v-deo.html
    10 Hour WhatsApp Clone: ua-cam.com/video/yqwfP2vXWJQ/v-deo.html

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

      Can you please pin this comment, or add it in the description?

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

    I'm convinced to switch from Getx to RiverPod. This was a very nice video. Thanks

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

      Mission Accomplished! Thanks a lot for sharing, glad it helped🙂

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

    Bro let me tell u something......
    U r Awooosoommeeeee Mannnnnnnn
    I learn a lot from u
    U are One Man Army
    Love from Pakistan❤

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

    excellent riverpod tutorial
    watching this tutorial in your Udemy course

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

    Thank you, Rivaan Ranawat

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

    Thanks a lot, Ranawat. That's all I needed for my next project

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

    most underrated video for Riverpod,cheers mate

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

    Excellent Explanation of Rivopod in detail... keep it up

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

    Best explanation for riverpod

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

    Thanks Rivaan for this tutorial. I would like to ask why your have not mentioned NotifierProvider, AsyncNotifierProvider and AutoDisposeNotifier as NotifierProvider is suppose to replace StateProvider and StateNotifierProvider as far as I understand?

  • @The.SniperTrader
    @The.SniperTrader Рік тому +13

    Please bring Nodejs and Flutter series

    • @RivaanRanawat
      @RivaanRanawat  Рік тому +5

      Noted! Working on a big series as of now, will get Flutter + Node soon!

    • @The.SniperTrader
      @The.SniperTrader Рік тому

      @@RivaanRanawat also make a broker app , i have mentioned and explained you on your discord have a look :)

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

    Hey bro thank you so much.Please make a tutorial for bloc also

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

    Once again, a beautiful tutorial

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

    thanks rivaan 😃

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

    Best riverpod video ever thanks

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

    Great video on riverpod. Thanks bro 👍

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

    thats a great video, would love to see move riverpod stuffs and as for code generation please give some solution for statenotifier too.. thanks

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

    What is the difference between these two, they work the same
    //1
    ref.read(nameProvider.notifier).state = val;
    //2
    ref.read(nameProvider.notifier).update((state) => val);
    both of these does the job for me which is change the name with whatever I type in my textfield

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

    Thanks Rivaan for this amazing tutorial . Would you make a video about Riverpod with Hooks and explain the differences ?

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

    The best tutorial!! Thank you so much

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

    Truly a fantastic video! Thank you!

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

    Thank you so much for this tutorial!

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

    Thanks

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

    Lovely video.
    Can you bring some more new projects with firebase or using ai ml

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

    please create same video on bloc also . Thx for creating this video

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

      Next video of the State Management Series will be Bloc! Currently working on a big series so it might take some time ;)

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

    Thank you, Bro! You are the best!!

  • @user-be7ui2vs8y
    @user-be7ui2vs8y Рік тому +1

    Great tutorial 🔥 My question is timestamp: 1:49:41, if you look at the method fetchUser using the @riverpod annotation, is this supposed to be async? Or not needed because riverpod will take care of it? Thanks

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

      Thanks!
      There's no point putting async because ultimately we will be returning Future. Marking a function as async makes it of the type Future

    • @user-be7ui2vs8y
      @user-be7ui2vs8y Рік тому

      @@RivaanRanawat Awesome! Thank you for replying

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

    Hey Rivaan first of all thanks a lot for making such kind of informative video. Can you make a video on post an API and taking the user credentials and tokens from the ui screen and using it for making a post request and then use the response to change the ui like after login we can show the user name and his personal details on the ui.

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

      Also make a get request for which also take some inputs from a different screen and when we get the response update the data also tell how to replace all setState that used for filtering or sorting or updating the data and also please tell how to handle different kinds of errors like for different errors we can do different things like 401,403 and or other errors. Like in .when method we are getting data, loading and error but how to handle different errors how I can check I am getting this status code or different code so that I can perform different operation. Please Rivaan make a video in all these concepts so it will be better for us because it's a real time project problem. Thankyou in advance. Hope you will consider my request. I had liked your videos and also subscribed your channel.

  • @SyedAhmad-wn2sv
    @SyedAhmad-wn2sv Рік тому

    Thanks , it helped a lot.

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

    20 Hours Dart & Flutter Full Course - ua-cam.com/video/CzRQ9mnmh44/v-deo.html

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

    Thanks for the video ❤️

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

    I not watch it but this will be gret

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

    Thank you sir

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

    Superb bro

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

    wow love this

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

    thank you brother

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

    hi rivaan could you please share the extension link for dart data class genrator which you are using as mine give only toMap and fromMap

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

    thank sir ,i hope next video you can make tutorial payment with paypal and stripe 😃

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

      Not the next one. Currently working on a big series, will get to Payments in Flutter while completing it.

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

    Rivaan Ranawat great video but bro you promised the family portfolio bro where's it. But nice keep up am still watching all you lectures to get better bro
    One Love ❤️🤝

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

    This is definitely an amazing explanation overall, but it feels like overwhelming. Someone was smoking weed when wrote all this stuff. Flutter it soo out of the regular dev stuff that looks incredible more complicated than should be. thanks anyway 😅

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

      I agree this seems very overwhelming. But once you get used to it, there's definitely no looking back! It decreases the time taken to code things by a big margin as compared to other state management tools. If you get a good idea of when to use what type of provider, Riverpod has many many advantages. I'd recommend getting started with a project. You'll definitely understand by doing.

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

    can you please tell which plugin is used in VS Code that gave instant error description. TIA

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

      error lens

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

    Great 😄

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

    This video is a gem.

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

      Thank you Rajender, happy it was helpful🙂

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

    Could be great to show Notifier and Async Notifier as both State and State notifier are obsolete

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

    Which is better to use consumer or ConsumerWidget in the counter example if I only want to update a single text widget in the centre of the screen ?

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

      Consumer. You can wrap the Text widget with Consumer. Because if we use ConsumerWidget, Appbar will rebuild as well. But this is probably over optimisation, doesn't matter that much

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

      @@RivaanRanawat Thanks ❤

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

    Bro im using windows instaling virtual box and how to yous flutter and vs code androide studio all instaling virtual box or not

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

    I need meta programming with dart if you do that well 👍

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

    I couldnt use the data class generator extension even after downloading it
    PLS HELP!

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

    Hello, can you make a video about undo/redo implementation by using Riverpod?

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

    bro create a video about api with riverpod

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

    full app banao flutter and node js Like any real time change ui reactive ui game app like ludo
    And
    I I love your voice ek bar hindi main shunni hai please

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

    Hey can you please make some tutorials on blockchain and flutter, a web3 project using flutter would be awesome

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

      Noted! Working on a big series as of now, will get to projects with Web3!

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

      @@RivaanRanawat thanks. There much content on flutter and web 3 . It would be very helpful

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

    how do i create AgoraRtcEngine() provider using flutter riverpod ?

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

    Hi Rivaan, have you ever tried get state management , if you did please give us a tutorial on getx

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

      Avoid GetX

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

      @@MuhammadVaidwhy what's the problem with GetX

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

      @@vinodh9492 search for the video titled "How to Evaluate Flutter Dependencies (or, why I won't use GetX)"

    • @RivaanRanawat
      @RivaanRanawat  Рік тому +4

      I too would prefer not promoting projects using GetX.

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

    do we need to learn provider first before entering into the riverpod?

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

      Nope, you can follow this tutorial without the knowledge of Provider.

  • @DaveJosh-qc5xn
    @DaveJosh-qc5xn Рік тому

    Can I get the link to the part 1 of this video

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

    Why Iam not getting option like “Generate copywith” on quick fix (00:30:28) ? Do I need to install any extension?

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

    Please ak refresh token implementation flutter ka leke aow, graphql ka 🙏❤️

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

    How to add music in Instagram stories and videos one tutorial

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

    Sir Can you please Provide Source code.

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

      I didn't save it in any GitHub repository 😅
      You can find all code on Riverpod website, link mentioned in description!

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

    could I get source code?

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

    26:40

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

    sorry Rivaan i like your videos but this was quite difficult 😒

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

    Same video you upload on udemy 😂 whats going on bro

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

    Hi Build Full Stack Telegram Clone

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

      Full Stack WhatsApp Clone is already released!

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

    myru

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

    succesfully wasted 1:54:32 minutes