Flutter Riverpod Http Get Request Example | Fetch API State Management

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Learn how to use Riverpod provider to fetch api data using http get request. We covered what is provider, what is futureProvider, what is ref.read(), what is ref.watch()
    😇😇😇😇😇😇😇
    Your Riverpod Bible is here
    www.dbestech.com/tutorials/fl...
    🔥🔥🔥🔥🔥🔥Flutter Riverpod tutorial
    www.dbestech.com/tutorials/ri...
    And (Riverpod advanced course)
    www.udemy.com/course/flutter-... @dbestech
    Twitter @dbestech
    Instagram @dbestech
    What's app @dbestech
    Timeline
    0:00 Introduction
    0:45 Create service class for riverpod
    01:10 Install http plugin for riverpod
    01:56 Create a model
    03:59 Create Riverpod Provider. Understand riverpod provider as shared state
    06:37 Create a futureProvider with provider for async request
    9:00 Riverpod ref.watch() when to use
    9:30 Use ConsumerWidget in the ui for riverpod state management
    11:00 Use ref.watch() in the ui
    11:25 Riverpod when() function with three states
    14:15 Riverpod ProverScope()
    More about it here
    www.dbestech.com/tutorials/ri...
    Buy a Macbook as I am using
    amzn.to/3AsvPKn
    Learn software programming with us step by step. Make money from home by learning programming
    Complete e-commerce app
    • Flutter E-commerce App...
    Complete app for beginners
    • Flutter 3.10.0 Master ...
    Firebase complete study app
    • Flutter Firebase Maste...
    Complete Gym App
    • Flutter Gym App | BloC...
    Traveling App
    • Flutter Master Class T...
    Learn to build an android and iOS app
    • Flutter App Developmen...
    Learn to build a video player app
    • Flutter Video Player T...
    Learn to build a website step by step
    • Complete Flutter Web A...
    Learn to build an ebook app
    • Flutter Backend | Flu...
    Build an audio app step by step
    • Flutter Audio Player T...
    ⏫⏫⏫⏫🔥🔥Bloc advanced code(e-commerce app)
    • Flutter Production Rea...
    🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥Riverpod advanced code🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
    • Upcoming Riverpod E-co...
    ☞☞☞🥰🥰🥰Single vendor food app
    • Flutter E-commerce App...
    Twitter @dbestech
    Instagram @dbestech
    What's app @dbestech
    LinkedIn @dbestech
    Facebook @dbestech
  • НаукаНаука

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

  • @keikusanagi99
    @keikusanagi99 9 месяцев назад

    It is the simplest and most well explained way I have found, thank you very much. Greetings from Mexico

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

    This helped me improve a lot with Riverpod, thank you so much!

  • @Machiuka
    @Machiuka Год назад +2

    Very simple to understand example. Thank you for sharing!

    • @dbestech
      @dbestech  Год назад +2

      Glad it was helpful!

  • @kurdishpotato1707
    @kurdishpotato1707 Год назад +4

    thank you so much, it's been 3 days i've been trying to understand riverpod workflow, i've watched multiple tutorials hours long but didn't get it until you used it in a real-life example using API

  • @ftrrhmn09
    @ftrrhmn09 Год назад +1

    I LOVE YOU MR. YOU HELPING ME!!!!

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

    Awesome Riverpod video! Had no idea you could use it in this way, I usually just made a regular list lol Thanks for the Flutter content!

    • @dbestech
      @dbestech  Год назад +1

      You are most welcome

  • @George-or3uv
    @George-or3uv Год назад

    Extremely good info. Thanks!

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

      Glad it was helpful!

  • @kwenziwa
    @kwenziwa Месяц назад

    Thank you this was straightforward

    • @dbestech
      @dbestech  Месяц назад

      Thanks a lot. LIke and share

  • @valentineejakpomewhe4352
    @valentineejakpomewhe4352 Год назад +4

    great tutorial, please can you also do for post, delete and put request with riverpod also.

  • @user-re1vj1jx4r
    @user-re1vj1jx4r 4 месяца назад

    Best explained video out there! Thanks

    • @dbestech
      @dbestech  4 месяца назад

      You're welcome!

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

    Great timing :-) thanks!

  • @muhammedalolo9974
    @muhammedalolo9974 5 месяцев назад

    Thank you very much, master 👏

    • @dbestech
      @dbestech  5 месяцев назад

      You are very welcome

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

    need more Riverpod tutorials

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

    thank you, very perfect tutorial

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

    Very good!! Thank you!

  • @romanayub
    @romanayub 3 месяца назад

    May allah rewards you ,
    It was best

    • @dbestech
      @dbestech  3 месяца назад +1

      like and share

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

    Olá! Você pode terminar este crud, fazendo um post update e delete?? A didática do vídeo é muito boa!

  • @user-sk3fv4pz3o
    @user-sk3fv4pz3o 16 дней назад

    thank you very much.

    • @dbestech
      @dbestech  16 дней назад

      You are welcome!

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

    Sir when new keyword creates an object and then the constructor is called to Intialize the object. Right after that a reference to that object is returned by dart and then we can store that object in a separate reference variable like:
    new User() ;
    after the execution of new User(), dart returns a value of type User which is the reference to the created object in heap memory. Am I right?

  • @romel3260
    @romel3260 4 месяца назад

    gracias. muy útil

    • @dbestech
      @dbestech  4 месяца назад

      You are welcome

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

    Great tutorial.. awesome

  • @itpeople1573
    @itpeople1573 10 месяцев назад

    good thanks

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

    thank you dbestech !
    This example is helpling me a lot. Anyway, I am wondering how we do if the rest call is dependent of another state in the app, let's say that we select a User and for details screen we need another extra call for "User Friends" something like this. Then, how we manage to do that without creating a NEW provider for each users?

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

    This "silent zoom"... Nice touch

  • @darul-asar381
    @darul-asar381 Год назад

    dear brother thanks a lot for the clear explanation this is amazing state now I love Reverpod.

  • @shadyarbzharothman8689
    @shadyarbzharothman8689 6 месяцев назад

    Thanks, I'm using MVC+S and I have a problem that I don't know how to work with providers while I have a controller, is there any resource about it?

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

    This is Awesome, i have a question btw.. what if the list is changing so i have 3 list then there is data incoming from backend so now the list is 4. how to make provider doing the calls again so everytime i wont miss a list at all..

  • @justinprakashraj6256
    @justinprakashraj6256 Год назад +1

    Bro i got some error - Expected a value of type 'list dynamic ' but got one of type '_null ' how to resolve it

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

    Lovely sir

  • @dev.faizan
    @dev.faizan Год назад

    great

  • @user-xm6cr7og5j
    @user-xm6cr7og5j 11 месяцев назад

    How you will manage loading whenever you will work with post method?

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

    Wslm Jazakallahu khairan

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

    more Riverpod tutorials please :)

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

      wha'ts in your mind?

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

      @@dbestech post, delete, get

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

      @@theifeanyi you mean make tuts for all these ?

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

      @@dbestech yeah I was just showing my friend this video you made for get method using RiverPod and it'll be great to learn all these other methods as well

    • @dbestech
      @dbestech  Год назад +1

      @@theifeanyi sure. Coming soon

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

    Sir can a Xcode simulator created on VM MacBook be used in android studio in windows?

  • @NatureHawker
    @NatureHawker 3 месяца назад

    Walaikum salam bro.

    • @dbestech
      @dbestech  3 месяца назад

      Like and share please

  • @fernandodeveloper9671
    @fernandodeveloper9671 Год назад +1

    Please make video, CRUD Riverpod. Thanks

  • @dramaticsports
    @dramaticsports Год назад +1

    sir why provider please make some basics videos on provider or make a big project on provider

  • @KJ-ve3ld
    @KJ-ve3ld 8 месяцев назад

    Will this update the data as soon as the json file gets updated?

  • @kaiparado
    @kaiparado 10 месяцев назад

    Jump in the directory creation to force us to pay for the code, very smart guy, for this reason I drop your course on Udemy besides its very bad course

    • @dbestech
      @dbestech  10 месяцев назад

      I am sorry if you feel like that. God bless us all. Take care brother.

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

    Please make video, Flutter on methodchannel invoked method, hander, passing data on both sides, native notification button call dart fun, evenmethod

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

    make poll and the check the subscribers vote which state management take more vote and start series on that

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

    how can i do post request with riverpod

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

    Hello sir..i have done a riverpod tutorial sir..i found that provider is necessary for riverpod.so eventually have to be good in provider..whereas i know provider is somewhat similar to getx..so a provider full app would be cool.

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

      Hi Karki, riverpod provider is different that provider provider. Yes, the other provider is somewhat similar to getx Getbuilder

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

      @@dbestech well sir it uses provider,future provider and stream...that may have confused me.

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

      @@angelkarki2963 yes, it does. It looks like provider. But it belongs to Riverpod

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

    Sir use source code pro or Trispace font style in your Android studio that will be more readable

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

      ok. good idea, I will use that next time.

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

    Is firebase enough for back end to start freelancing using flutter?

    • @dbestech
      @dbestech  Год назад +2

      Nope. If you want freelancing, you need to provide backend to clients. Clients need app backend. PHP Laravel is best backend for freelancing.

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

    Nice Sir.Sir I have hp laptop core I5 4th Gen,8GB Ram,256 GB SSD.I want to run flutter app on ios virtual device.Can I do that.?
    If not,can I install virtual MacBook With These specifications.Please Guide.It's really important to know for me.I have learned flutter and it's about getting started with freelancing.Your guidance in this regard can of great help

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

      Hi Faisal, you should install vmware on your windows machine. then you would install mac os on that. But 100% successful installation depends on the hardware as well. docs.vmware.com/en/VMware-Fusion/12/com.vmware.fusion.using.doc/GUID-474FC78E-4E77-42B7-A1C6-12C2F378C5B9.html#:~:text=You%20can%20install%20Mac%20OS,optimize%20a%20virtual%20machine's%20performance. is the link that may help you

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

    What is the best library for http request and for stage?

    • @dbestech
      @dbestech  Год назад +2

      I always use http pacakge. I find it's great.

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

    bro we are waiting for next part of ecommerce App part 8

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

    Thanks for this video tutorial. where can I download the source code please?

    • @kaiparado
      @kaiparado 10 месяцев назад

      You should pay for, this is the trick

  • @sb-dor
    @sb-dor Год назад

    Salam Aleikum sir, is everything good?. Sir, please do tutorial about infinite scroll Listview with laravel and http get request. Thank you for all, sir

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

      Thanks. I am good. But I already have one this in the e-commerce app. Did you check that out?

    • @sb-dor
      @sb-dor Год назад

      @@dbestech thanks sir, I find that tutorial. You are the best 🔥

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

    Can u make a pagination video with riverpod bro

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

    Uaaleykumassalam

  • @MuhammadAhmad-bx2rw
    @MuhammadAhmad-bx2rw Год назад

    May be you can make some big projects in react native.

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

    Sir...can you please provide source code to this project.

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

      I think it's given in the link of the video

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

      My bad... Great video sir. Thank you

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

    Hello sir, you have very few videos on react native...Why don't you bring some big project on react native...?Pls bring some good quality videos on react native like flutter ecommerce with back end.. we don't have much videos on react native on this platform...

  • @Harry-ju9nv
    @Harry-ju9nv Год назад

    Good evening sir,
    Plz help me to perform operation on google map
    Such as
    If we have multiple markers on map, then find the nearest mark
    Show smallest route between two points, in which one point is permanent and second is moving
    And operations like these
    Plz sir help me by making tutorial on this.
    Lots of Love sirr

  • @MuhammadAhmad-bx2rw
    @MuhammadAhmad-bx2rw Год назад

    Bro can you make projects in react native

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

      Yes I can

    • @MuhammadAhmad-bx2rw
      @MuhammadAhmad-bx2rw Год назад

      @@dbestechbro I'm following you from sometimes but I want to make react native projects. You will definitely get more views.