Flutter BLoC Http Get Example | Fetch API Data | Flutter BLoC Pattern Rest Api Call
HTML-код
- Опубликовано: 14 авг 2022
- Learn about flutter BLoC pattern 8 fetching data from api or call api using http get request. We covered what is bloc pattern, what are states and events and how to build blocs using them. We also covered how to create states and events using classes and connect them by building blocs.
We talked about how user interaction creates events and that leads to state changes. flutter bloc pattern rest api call
We also showed how to work for Restful Api with RepositoryProvider.
Complete BLoC app (course selling app with payment)
www.dbestech.com/tutorials/on...
📕📕📕📕BLoC Udemy Course
www.udemy.com/course/course-s...
More BLoC tutorial
www.dbestech.com/tutorials/fl...
Buy me coffee
www.buymeacoffee.com/dbestech...
Flutter e-commerce app
www.dbestech.com/tutorials/fl...
Flutter firebase app
www.dbestech.com/tutorials/fl...
Flutter ticket booking app
www.dbestech.com/tutorials/fl...
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...
Twitter @dbestech
Instagram @dbestech
What's app @dbestech
LinkedIn @dbestech Наука
I think this is the best explanation I found on RUclips about Bloc, Jaazakumullohu xoyron kasiron.
Great tutorial, i'm still trying to figure out how to properly use blocs and this helped.
Thanks you sir!
You are my hero. That explanation about the RepositoryProvider made me realize what was the problem I was dragging for almost 4 weeks. THANK YOU!
You are most welcome
Im new in bloc pattern and i have scattered the internet to learn it, but this is by far the most understandable, complete and easy tutorial for bloc, unlike other tutorials that always use that counter app... smh
You are most welcome
I mean how a newbie like me knows how to store data, return data and fetch from api in bloc when they do is to only teach incrementing int value
this is by far the best tutorial about flutter bloc, thanks a lot
this is the easiest flutter bloc tutorial to understand I have ever found in the entire youtube! thanks for thisss
You're very welcome!
Best tutorial ever to learn the BLoC Pattern, seriously good!
Glad it was helpful!
you're right
coming from getx this has been the best bloc tutorial i have found, thank you sir!
Glad it helped!
Ohh man. Its the simplest tutorial. Thank you so much!!!😃
Glad it helped!
Best tutorial so far for the Bloc pattern. Extremely helpful. It’s easy to understand for beginners. 👍 Thank you so much!
Glad it was helpful!
Great explanation, Loved the content🤩
best tutorial on bloc 👍👍
Good tutorial, now I understand flutter_bloc, thank you.
most welcome
Assalomu alaykum . this guide is very useful i am learning flutter now it helped me a lot. good luck with your work. great content
Thanks a lot, well explained.
You are welcome!
im new to bloc..and this is very clear..plz upload this kind of videoes
Yes, will come more
U are the best teacher thank u so much Sir.
So nice of you
Sir i find Bloc very beautiful...
thank u for this great concept!
You are most welcome. Yes coming more. Now I love Getx and BLoC. They are great. what's your most favorite now?
@@dbestech Getx is my favorite now. I love the route management feature
Bro that's cool, now I understand everything, thank you)))
Glad to hear that!
Huge thanks! Cool!
No problem!
It's useful my learning
Glad to hear that
thanks master , its really useful lessons please just keep going ;;
Thank you, I will
Muchas gracias me salvaste la vida
You are welcome. like and share
Excellent 🤩🤩
Thank you! Cheers!
Great
thank you sir i will be honored if we meet someday to thank you in person
Ty for sharing . A pair of question please...1) I see u calling LoadUserEvent in build method so every time the app rebuilds it will load all the data ? not inefficient? Explain please.
2) What about global variables ? If u calling BlocProvider inside the ui, u can't get global variable for the whole app ?. Imagine a login screen used to get a global user for the whole app then bloc provider should be on main screen ? .
Again thank you for sharing.
good video i subscribed 👍😉
Thanks for the sub!
Thanks
Welcome
thank you very much with amazing tutorial. Want to ask about RepositoryProvider why we would need this DI when we can just directly inject provider to the blocprovider? something like UserBloc(UserRepository) rather than UserBloc(RepositoryProvider...)? This is the first time I see RepoProvider and genuinely curious what kind of case I need this method. Thank you once again for the tutorial
Salam bro, you are the best
You are the best
Can we inject multiple states for builder ?
@@deedev7279 I guess no. Only one state at one time. But you can do list of state classes
@@dbestech can you suggest example code or article ?
Nice Explanation. Can you please add post, put and delete methods as well for Bloc.?
I will cover soon
There is a typo in your thumbnail, should be "Http Request". Thanks for the video and looking for the next one.
Oh thanks!
❤️❤️
Excellent vídeo great, please upload vídeo Google Maps, GPS, ando Location and tracking using flutter bloc? Please
Great suggestion!
Please make a step by step video on expansion tile flutter..
Humble request 🙏🙏
I will
👍👌👌👌👌👌
Thanks
nice video bro can u make video on clean architechture + Bloc + TDD(test driven development)
I will try
This will be great
@@dbestech it will be awesome
Check resocoder channel
@@sosoTheLittle thats outdated
Thankyou sir. But, I have a question. How to update automatically that list data when we post new data in another page and navigator.pop to this list data screen?
I'm trying to make image api using laravel but I'm facing errors, is there a tutorial for this ? And thanks for this amazing video!
ruclips.net/video/qHkHcDByb5g/видео.html have you tried this?
Wa alaiku musslam
You can do a tutorial on infinite scroll pagination when using Bloc with Clean Architecture?
I will try thanks
please make a music application with all functionality it would be soo helpful.
Yes, I will
hey bro, I have few questions, why it doesn't use bloc listener? and when we using bloc listener? , btw appreciate this video, very helpful
You can.
You use bloc listener when you need to do something not directly related to ui widgets like navigation or snackbars.
Please share tutorial widget test and unit testing
will cover
did dbestech used the archeticture using logic of repositories
MultiRepositoryProvider in top of material Widget and deep dive in it , even if it is in udemy , wish you answer me , thank you
I did not use RepositoryProvider in Udemy either. There are other ways to do things.
Could you give us the source code? It will help us a lot and thank you so much!
Is this the video you mentioned in community section?
no
It covers the basic
Thanks 😊
do you have git?
What if an error state occurs and the user wants to reload the data, for example with the reload button on the error page
you can do it. Just create a new event and state for it. error should be checked with states and then emit new event and reload data
Hi, how can I pass the User's data to Details Screen using the "Generated named routes"?
ruclips.net/video/dl6oUW6H7yo/видео.html this should help you
I want to locally store a list of map on device storage (which contains String and boolian) but shared preference is throwing a runtime error. Bool can't be assigned to String
you can save string say "yes" and "no" then you read them back convert them to true or false. Shared preference only supports strings.
@@dbestech shared preference also saves list of string but my list has bool too. Actually I'm building task manager app. Any alternative of shared preference?
@@SajjadHussain-iu6jv how about hive ? Or sqflite
would you mind sharing the repo of the project please
Here we go learnflutter.co/flutter-bloc-http-get-example-fetch-data-from-server/
Hai, I have a doubt that what is the use of Wrapping with RepositoryProvider?
for network request
Sir, why you call API in the build, the documentation said it's better call it in initState, CMIIW
that's true. we need to optimize that. But there are many ways to do it.
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?
wait pls. I need to answer it carefully
aslm
where can i get the code
There’s link for it in the description
@@dbestech where? I check the description, but I can't see the code for the repo of this tutorial