Flutter Riverpod Http Get Request Example | Fetch API State Management

  Рет қаралды 34,947

dbestech

dbestech

Күн бұрын

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...
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

Пікірлер: 104
@glrbrasil
@glrbrasil Жыл бұрын
This helped me improve a lot with Riverpod, thank you so much!
@keikusanagi99
@keikusanagi99 10 ай бұрын
It is the simplest and most well explained way I have found, thank you very much. Greetings from Mexico
@kurdishpotato1707
@kurdishpotato1707 Жыл бұрын
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
@Machiuka
@Machiuka Жыл бұрын
Very simple to understand example. Thank you for sharing!
@dbestech
@dbestech Жыл бұрын
Glad it was helpful!
@juanmacias5922
@juanmacias5922 2 жыл бұрын
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 2 жыл бұрын
You are most welcome
@ftrrhmn09
@ftrrhmn09 Жыл бұрын
I LOVE YOU MR. YOU HELPING ME!!!!
@valentineejakpomewhe4352
@valentineejakpomewhe4352 2 жыл бұрын
great tutorial, please can you also do for post, delete and put request with riverpod also.
@kwenziwa
@kwenziwa 3 ай бұрын
Thank you this was straightforward
@dbestech
@dbestech 3 ай бұрын
Thanks a lot. LIke and share
@George-or3uv
@George-or3uv Жыл бұрын
Extremely good info. Thanks!
@dbestech
@dbestech Жыл бұрын
Glad it was helpful!
@leoingson
@leoingson Жыл бұрын
Great timing :-) thanks!
@dbestech
@dbestech Жыл бұрын
Perfect!
@hashankannangara8723
@hashankannangara8723 2 жыл бұрын
need more Riverpod tutorials
@user-re1vj1jx4r
@user-re1vj1jx4r 6 ай бұрын
Best explained video out there! Thanks
@dbestech
@dbestech 6 ай бұрын
You're welcome!
@NurFlutterDev
@NurFlutterDev Жыл бұрын
thank you, very perfect tutorial
@dbestech
@dbestech Жыл бұрын
You're welcome!
@muhammedalolo9974
@muhammedalolo9974 6 ай бұрын
Thank you very much, master 👏
@dbestech
@dbestech 6 ай бұрын
You are very welcome
@rraayy1111
@rraayy1111 Жыл бұрын
Very good!! Thank you!
@dbestech
@dbestech Жыл бұрын
Thank you too!
@romanayub
@romanayub 5 ай бұрын
May allah rewards you , It was best
@dbestech
@dbestech 5 ай бұрын
like and share
@shradeevans4049
@shradeevans4049 2 жыл бұрын
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..
@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?
@user-sk3fv4pz3o
@user-sk3fv4pz3o 2 ай бұрын
thank you very much.
@dbestech
@dbestech 2 ай бұрын
You are welcome!
@RodrigoNishino
@RodrigoNishino Жыл бұрын
This "silent zoom"... Nice touch
@dbestech
@dbestech Жыл бұрын
thanks
@darul-asar381
@darul-asar381 Жыл бұрын
dear brother thanks a lot for the clear explanation this is amazing state now I love Reverpod.
@starcity254
@starcity254 Жыл бұрын
Great tutorial.. awesome
@dbestech
@dbestech Жыл бұрын
Thank you! Cheers!
@kaiparado
@kaiparado Жыл бұрын
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 Жыл бұрын
I am sorry if you feel like that. God bless us all. Take care brother.
@itpeople1573
@itpeople1573 Жыл бұрын
good thanks
@solapregacao
@solapregacao Жыл бұрын
Olá! Você pode terminar este crud, fazendo um post update e delete?? A didática do vídeo é muito boa!
@romel3260
@romel3260 5 ай бұрын
gracias. muy útil
@dbestech
@dbestech 5 ай бұрын
You are welcome
@ManmaySakib
@ManmaySakib Ай бұрын
great sir....
@dbestech
@dbestech Ай бұрын
Like and share
@dramaticsports
@dramaticsports 2 жыл бұрын
sir why provider please make some basics videos on provider or make a big project on provider
@NatureHawker
@NatureHawker 5 ай бұрын
Walaikum salam bro.
@dbestech
@dbestech 5 ай бұрын
Like and share please
@blockchaindevelopment120
@blockchaindevelopment120 2 жыл бұрын
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?
@blockchaindevelopment120
@blockchaindevelopment120 2 жыл бұрын
Lovely sir
@dbestech
@dbestech 2 жыл бұрын
Welcome
@fernandodeveloper9671
@fernandodeveloper9671 2 жыл бұрын
Please make video, CRUD Riverpod. Thanks
@dbestech
@dbestech 2 жыл бұрын
Thanks, I will
@dev.faizan
@dev.faizan 2 жыл бұрын
great
@shadyarbzharothman8689
@shadyarbzharothman8689 8 ай бұрын
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?
@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 Жыл бұрын
@@theifeanyi sure. Coming soon
@bashiruibrahim8443
@bashiruibrahim8443 2 жыл бұрын
Wslm Jazakallahu khairan
@justinprakashraj6256
@justinprakashraj6256 Жыл бұрын
Bro i got some error - Expected a value of type 'list dynamic ' but got one of type '_null ' how to resolve it
@KJ-ve3ld
@KJ-ve3ld 10 ай бұрын
Will this update the data as soon as the json file gets updated?
@user-xm6cr7og5j
@user-xm6cr7og5j Жыл бұрын
How you will manage loading whenever you will work with post method?
@blockchaindevelopment120
@blockchaindevelopment120 2 жыл бұрын
Sir can a Xcode simulator created on VM MacBook be used in android studio in windows?
@srkrishnan1989
@srkrishnan1989 2 жыл бұрын
Please make video, Flutter on methodchannel invoked method, hander, passing data on both sides, native notification button call dart fun, evenmethod
@angelkarki2963
@angelkarki2963 2 жыл бұрын
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 2 жыл бұрын
Hi Karki, riverpod provider is different that provider provider. Yes, the other provider is somewhat similar to getx Getbuilder
@angelkarki2963
@angelkarki2963 2 жыл бұрын
@@dbestech well sir it uses provider,future provider and stream...that may have confused me.
@dbestech
@dbestech 2 жыл бұрын
@@angelkarki2963 yes, it does. It looks like provider. But it belongs to Riverpod
@dramaticsports
@dramaticsports 2 жыл бұрын
make poll and the check the subscribers vote which state management take more vote and start series on that
@blockchaindevelopment120
@blockchaindevelopment120 2 жыл бұрын
Sir use source code pro or Trispace font style in your Android studio that will be more readable
@dbestech
@dbestech 2 жыл бұрын
ok. good idea, I will use that next time.
@blockchaindevelopment120
@blockchaindevelopment120 2 жыл бұрын
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 2 жыл бұрын
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
@asafgoldman8172
@asafgoldman8172 Жыл бұрын
Thanks for this video tutorial. where can I download the source code please?
@kaiparado
@kaiparado Жыл бұрын
You should pay for, this is the trick
@fimaljo7890
@fimaljo7890 Жыл бұрын
how can i do post request with riverpod
@mansoormalik8612
@mansoormalik8612 2 жыл бұрын
bro we are waiting for next part of ecommerce App part 8
@dbestech
@dbestech 2 жыл бұрын
Coming soon
@blockchaindevelopment120
@blockchaindevelopment120 2 жыл бұрын
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.
@anoniem012
@anoniem012 Жыл бұрын
What is the best library for http request and for stage?
@dbestech
@dbestech Жыл бұрын
I always use http pacakge. I find it's great.
@demodemo9429
@demodemo9429 Жыл бұрын
Can u make a pagination video with riverpod bro
@dbestech
@dbestech Жыл бұрын
yes, I will
@sb-dor
@sb-dor 2 жыл бұрын
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 2 жыл бұрын
Thanks. I am good. But I already have one this in the e-commerce app. Did you check that out?
@sb-dor
@sb-dor 2 жыл бұрын
@@dbestech thanks sir, I find that tutorial. You are the best 🔥
@KimuraZhakeshi
@KimuraZhakeshi 2 жыл бұрын
Uaaleykumassalam
@dbestech
@dbestech 2 жыл бұрын
Thanks
@MuhammadAhmad-bx2rw
@MuhammadAhmad-bx2rw 2 жыл бұрын
May be you can make some big projects in react native.
@smarttechinfo4512
@smarttechinfo4512 2 жыл бұрын
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 2 жыл бұрын
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
@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
@MuhammadAhmad-bx2rw
@MuhammadAhmad-bx2rw 2 жыл бұрын
Bro can you make projects in react native
@dbestech
@dbestech 2 жыл бұрын
Yes I can
@MuhammadAhmad-bx2rw
@MuhammadAhmad-bx2rw 2 жыл бұрын
@@dbestechbro I'm following you from sometimes but I want to make react native projects. You will definitely get more views.
Flutter Riverpod Provider and StateProvider
10:05
dbestech
Рет қаралды 7 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 76 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 17 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 121 МЛН
State Management Like A Pro - Flutter Riverpod
10:30
Robert Brunhage
Рет қаралды 76 М.
Riverpod Simplified | Easy State Management
14:17
Tadas Petra
Рет қаралды 43 М.
Riverpod or Bloc? Which One is Better?
3:44
Flutter Guys
Рет қаралды 40 М.
Mastering Clean Architecture & Repository Pattern in Flutter
52:01
David Serrano
Рет қаралды 20 М.
REST Call with Flutter - Http methods
19:55
CodeX
Рет қаралды 69 М.
low battery 🪫
0:10
dednahype
Рет қаралды 1,7 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 18 МЛН
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 175 М.