Flutter Provider Http Request With Example | State Management

preview_player
Показать описание
Learn about Flutter Provider Http Request with example.
Complete code is here
😇😇😇😇Same app three versions Riverpod, BLoC and Getx. Check which one you like
📚📚📚
Twitter
@dbestech

0:00 Introduction
0:16 Install provider package
0:40 Understand your data model for provider
1:14 Create data model
1:54 Create data model class
2:18 Create service class for loading data using provider
2:29 Service class
3:46 Data class with ChangeNotifier
4:24 Create ChangeNotifierProvider
4:54 Create a new stateful class
Provider complete app
Рекомендации по теме
Комментарии
Автор

nice explanation thank you so much 🙏🏼🙏🏼🙏🏼

someshsahu
Автор

You are indeed an great teacher sir, tq for the lessons😍

demodemo
Автор

Hello. As salamu aleykum.
Man, you can't imagine how helpful these short videos are.
They are quite to the point.
If I wanted to know this simple get data and use it with provider by watching some long videos which contain this part, more likely I wouldn't learn that much and waste my time.
But you just choose topic(very practical topic). Then write all steps(1-6 here for ex. very very helpful to reinforce and wrap head around).
Thanks a ton.
This one video helped me more than some long videos!
Thank you very much!
I want to be a friend with you. How can I get in touch with you? I mean a real friend. Not for abusing you.
Va rahmatulla! I am also a muslim from Azerbaijan!

kurshadqaya
Автор

السلام عليكم أخي
There is a topic I searched a lot about, and no explanation for it. Which is to receive and display notifications to users via the rest api. All explanations talk about firebase or local notifications.

I hope you will give an explanation on this topic.
Thank you

seciere
Автор

Great.stuff. ❤ please create a video with local db like hive

ai_malllu
Автор

Hi. This might be a stupid question, but what keys did you press to replace the Container() to Scaffold()?

dorothydumang
Автор

I have used (context, value, child)" instead of
"final movie = Is that Okay?
What is the best way to use it?

nani-xiyk
Автор

@dbestech, can you please make a step by step video like this one explaining crud methods of phpmyadmin and flutter. this is a great video but it only retrieves jason data from the web, can u plz make a video where u not only retrieve and display but also take input from flutter app and send it to web to manipulate phpmyadmin database plz ?

mkhwanazicebo
Автор

hello sir, i have a question, i'm trying to figure out how can i make an app where different users can login and every user can save their app settings and favorite items inside a favorite list and also can save app settings like light mode and dark mode and much more and also shared across different screens in the app(similar to most modern apps like spotify, kindle, etc), i want this data to be different for each logged in user, can you please guide me a little regarding this?

vibhor
Автор

thanks bro, I have asked you a question about best emulator except genymotion ??

steev
Автор

In provider we do not get any initialization method where we can call or request api. But in Getx there is a onInit method with which we can easily do the same things. With that we get the advantage of using stateless widget which was not otherwise possible.

TheAbhidugar
Автор

Hi, my model contain a ObjectId type. It gives me an error "type 'String' is not a subtype of type 'ObjectId'". I assume your code only store String type of data only. Do you have any idea on how I can solve this? I cannot convert the ObjectId to String or maybe I do it wrong. Maybe you can help me with this? Thanks!

darcifo
Автор

Very helpful! How would you handle a post request?

wdavis
Автор

how can we apply the check if list comes from api is null for example here the compiler shows an error .

saqibnawaz
Автор

Good explanation thank you but there is a misunderstanding situation. İn this tutorial you have only one page and your state is readable from everywhere. İmagine you have three page you made and request and you get data state was busy there is a loading state successfully worked then you pushed yourself to second page then you get data one more time successfully and lastly you pushed yourself to the third page and you requested for data your state changed to busy you're showing loading widget right now something happened on server when you popped to second page, second page is also shows loading widget but it wouldn't show that you popped one more time and on the first page it's also showing loading widget too. Because your state is waiting response from third page to change. İn this situation you can't go to third page because your widgets (button for example) is not visible. You have only one chance restart application. For prevent this issue use singleton and create state for every page. When you pop third page's state is busy but others are not. Also third page state changed to initial (idle, free) state, too.

nalbur_
Автор

tqsm now im able to get single api, then what about if there is a list of api

sandeepraju
Автор

Search data for database implement grid view sqlite

bhabhayt