Flutter Riverpod 2 Tutorial for Beginners | Riverpod Generator

Поделиться
HTML-код
  • Опубликовано: 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 👏👏👏👏👏

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

      Haha, thanks a lot Elif, appreciate it:)

  • @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: ruclips.net/video/B8Sx7wGiY-s/видео.html
    5 Hour Google Docs Clone: ruclips.net/video/W6vAQdzLcu4/видео.html
    10 Hour WhatsApp Clone: ruclips.net/video/yqwfP2vXWJQ/видео.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 - ruclips.net/video/CzRQ9mnmh44/видео.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

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

      Yup! Saved it for a seperate tutorial :)

  • @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