No video

Flutter BLoC Http Get Example | Fetch API Data | Flutter BLoC Pattern Rest Api Call

  Рет қаралды 46,842

dbestech

dbestech

Күн бұрын

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.c...
📕📕📕📕BLoC Udemy Course
www.udemy.com/...
More BLoC tutorial
www.dbestech.c...
Buy me coffee
www.buymeacoff...
Flutter e-commerce app
www.dbestech.c...
Flutter firebase app
www.dbestech.c...
Flutter ticket booking app
www.dbestech.c...
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

Пікірлер: 120
@zainroyan1556
@zainroyan1556 2 жыл бұрын
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
@dbestech
@dbestech 2 жыл бұрын
You are most welcome
@zainroyan1556
@zainroyan1556 2 жыл бұрын
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
@xdy9494
@xdy9494 3 ай бұрын
this is the easiest flutter bloc tutorial to understand I have ever found in the entire youtube! thanks for thisss
@dbestech
@dbestech 3 ай бұрын
You're very welcome!
@Patarringle
@Patarringle Жыл бұрын
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!
@dbestech
@dbestech Жыл бұрын
You are most welcome
@musoxon_
@musoxon_ Жыл бұрын
I think this is the best explanation I found on KZbin about Bloc, Jaazakumullohu xoyron kasiron.
@Ggbebe373
@Ggbebe373 Жыл бұрын
Best tutorial so far for the Bloc pattern. Extremely helpful. It’s easy to understand for beginners. 👍 Thank you so much!
@dbestech
@dbestech Жыл бұрын
Glad it was helpful!
@Charly9K
@Charly9K Жыл бұрын
coming from getx this has been the best bloc tutorial i have found, thank you sir!
@dbestech
@dbestech Жыл бұрын
Glad it helped!
@subsoho
@subsoho Жыл бұрын
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.
@DavideBelardi
@DavideBelardi Жыл бұрын
Best tutorial ever to learn the BLoC Pattern, seriously good!
@dbestech
@dbestech Жыл бұрын
Glad it was helpful!
@angecyrillenoutchogbe3226
@angecyrillenoutchogbe3226 Жыл бұрын
you're right
@azamovdev
@azamovdev Жыл бұрын
Assalomu alaykum . this guide is very useful i am learning flutter now it helped me a lot. good luck with your work. great content
@borissoto
@borissoto Жыл бұрын
this is by far the best tutorial about flutter bloc, thanks a lot
@abass586
@abass586 Жыл бұрын
Great tutorial, i'm still trying to figure out how to properly use blocs and this helped. Thanks you sir!
@kowsitweencraft
@kowsitweencraft Жыл бұрын
im new to bloc..and this is very clear..plz upload this kind of videoes
@dbestech
@dbestech Жыл бұрын
Yes, will come more
@angelsureshkarki
@angelsureshkarki 2 жыл бұрын
Sir i find Bloc very beautiful... thank u for this great concept!
@dbestech
@dbestech 2 жыл бұрын
You are most welcome. Yes coming more. Now I love Getx and BLoC. They are great. what's your most favorite now?
@alisampson6639
@alisampson6639 2 жыл бұрын
@@dbestech Getx is my favorite now. I love the route management feature
@maksmedvedev1207
@maksmedvedev1207 Жыл бұрын
Ohh man. Its the simplest tutorial. Thank you so much!!!😃
@dbestech
@dbestech Жыл бұрын
Glad it helped!
@islamimam_
@islamimam_ Жыл бұрын
thank you sir i will be honored if we meet someday to thank you in person
@juanpbloballesterossos3686
@juanpbloballesterossos3686 4 ай бұрын
Muchas gracias me salvaste la vida
@dbestech
@dbestech 3 ай бұрын
You are welcome. like and share
@FreeTrained
@FreeTrained 11 ай бұрын
best tutorial on bloc 👍👍
@ykmusicpro3624
@ykmusicpro3624 Жыл бұрын
U are the best teacher thank u so much Sir.
@dbestech
@dbestech Жыл бұрын
So nice of you
@pedroeduardoquinonesgarcia1080
@pedroeduardoquinonesgarcia1080 Жыл бұрын
Good tutorial, now I understand flutter_bloc, thank you.
@dbestech
@dbestech Жыл бұрын
most welcome
@calvinandhika
@calvinandhika Жыл бұрын
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
@priyanshupaliwal8548
@priyanshupaliwal8548 10 ай бұрын
Great explanation, Loved the content🤩
@ImmanuelJohn-cv4ke
@ImmanuelJohn-cv4ke Жыл бұрын
Excellent 🤩🤩
@dbestech
@dbestech Жыл бұрын
Thank you! Cheers!
@erey7830
@erey7830 Жыл бұрын
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?
@Jose.Lourenco
@Jose.Lourenco 2 жыл бұрын
There is a typo in your thumbnail, should be "Http Request". Thanks for the video and looking for the next one.
@dbestech
@dbestech 2 жыл бұрын
Oh thanks!
@fluttterdev1k
@fluttterdev1k Жыл бұрын
thanks master , its really useful lessons please just keep going ;;
@dbestech
@dbestech Жыл бұрын
Thank you, I will
@user-xx9rp4gp9g
@user-xx9rp4gp9g Жыл бұрын
Bro that's cool, now I understand everything, thank you)))
@dbestech
@dbestech Жыл бұрын
Glad to hear that!
@deedev7279
@deedev7279 Жыл бұрын
Salam bro, you are the best
@dbestech
@dbestech Жыл бұрын
You are the best
@deedev7279
@deedev7279 Жыл бұрын
Can we inject multiple states for builder ?
@dbestech
@dbestech Жыл бұрын
@@deedev7279 I guess no. Only one state at one time. But you can do list of state classes
@deedev7279
@deedev7279 Жыл бұрын
@@dbestech can you suggest example code or article ?
@bobhero7
@bobhero7 2 жыл бұрын
Please make a step by step video on expansion tile flutter.. Humble request 🙏🙏
@dbestech
@dbestech 2 жыл бұрын
I will
@vianeyvargas7736
@vianeyvargas7736 2 жыл бұрын
Excellent vídeo great, please upload vídeo Google Maps, GPS, ando Location and tracking using flutter bloc? Please
@dbestech
@dbestech 2 жыл бұрын
Great suggestion!
@kazerdira4704
@kazerdira4704 4 ай бұрын
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
@dbestech
@dbestech 4 ай бұрын
I did not use RepositoryProvider in Udemy either. There are other ways to do things.
@sangamsingh6866
@sangamsingh6866 2 жыл бұрын
Nice Explanation. Can you please add post, put and delete methods as well for Bloc.?
@dbestech
@dbestech 2 жыл бұрын
I will cover soon
@gyanupadhyay9473
@gyanupadhyay9473 2 жыл бұрын
nice video bro can u make video on clean architechture + Bloc + TDD(test driven development)
@dbestech
@dbestech 2 жыл бұрын
I will try
@amitaiefrati4111
@amitaiefrati4111 2 жыл бұрын
This will be great
@meek6836
@meek6836 2 жыл бұрын
@@dbestech it will be awesome
@sosoTheLittle
@sosoTheLittle 2 жыл бұрын
Check resocoder channel
@meek6836
@meek6836 2 жыл бұрын
@@sosoTheLittle thats outdated
@reiaxel8285
@reiaxel8285 Жыл бұрын
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
@dbestech
@dbestech Жыл бұрын
You can.
@subsoho
@subsoho Жыл бұрын
You use bloc listener when you need to do something not directly related to ui widgets like navigation or snackbars.
@rajadurai.
@rajadurai. 2 жыл бұрын
It's useful my learning
@dbestech
@dbestech 2 жыл бұрын
Glad to hear that
@nahomersom406
@nahomersom406 Жыл бұрын
Thanks a lot, well explained.
@dbestech
@dbestech Жыл бұрын
You are welcome!
@seamensclubltd7603
@seamensclubltd7603 2 жыл бұрын
Huge thanks! Cool!
@dbestech
@dbestech 2 жыл бұрын
No problem!
@subodhrai7500
@subodhrai7500 Жыл бұрын
Great
@memodelapena2890
@memodelapena2890 Жыл бұрын
Hi, how can I pass the User's data to Details Screen using the "Generated named routes"?
@dbestech
@dbestech Жыл бұрын
kzbin.info/www/bejne/mp2ZoIiNa61qr9E this should help you
@manishkarki8119
@manishkarki8119 10 ай бұрын
do you have git?
@khangluonguc5187
@khangluonguc5187 Жыл бұрын
You can do a tutorial on infinite scroll pagination when using Bloc with Clean Architecture?
@dbestech
@dbestech Жыл бұрын
I will try thanks
@deenaadam5878
@deenaadam5878 2 жыл бұрын
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!
@dbestech
@dbestech 2 жыл бұрын
kzbin.info/www/bejne/p3nOeZZ6d96Va8k have you tried this?
@handulewauka6977
@handulewauka6977 Жыл бұрын
What if an error state occurs and the user wants to reload the data, for example with the reload button on the error page
@dbestech
@dbestech Жыл бұрын
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
@haonguyenvinh4092
@haonguyenvinh4092 Ай бұрын
if the data is a message and i want the new message to show up without reloading the screen then how. Thank you
@dbestech
@dbestech Ай бұрын
If you have data coming from server you always need reload. The other thing you can do using socket and update. But that's a difficult method
@haonguyenvinh4092
@haonguyenvinh4092 Ай бұрын
@@dbestech thank you
@sujithsureshkumar
@sujithsureshkumar Жыл бұрын
Hai, I have a doubt that what is the use of Wrapping with RepositoryProvider?
@dbestech
@dbestech Жыл бұрын
for network request
@fuadikurniawan2850
@fuadikurniawan2850 2 жыл бұрын
Sir, why you call API in the build, the documentation said it's better call it in initState, CMIIW
@dbestech
@dbestech 2 жыл бұрын
that's true. we need to optimize that. But there are many ways to do it.
@SajjadHussain-iu6jv
@SajjadHussain-iu6jv 2 жыл бұрын
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
@dbestech
@dbestech 2 жыл бұрын
you can save string say "yes" and "no" then you read them back convert them to true or false. Shared preference only supports strings.
@SajjadHussain-iu6jv
@SajjadHussain-iu6jv 2 жыл бұрын
@@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?
@dbestech
@dbestech 2 жыл бұрын
@@SajjadHussain-iu6jv how about hive ? Or sqflite
@fluttermakers
@fluttermakers Жыл бұрын
good video i subscribed 👍😉
@dbestech
@dbestech Жыл бұрын
Thanks for the sub!
@iamd.7
@iamd.7 2 жыл бұрын
please make a music application with all functionality it would be soo helpful.
@dbestech
@dbestech 2 жыл бұрын
Yes, I will
@mayogarcia5795
@mayogarcia5795 2 жыл бұрын
Thanks
@dbestech
@dbestech 2 жыл бұрын
Welcome
@ismoilazamov9337
@ismoilazamov9337 Жыл бұрын
👍👌👌👌👌👌
@dbestech
@dbestech Жыл бұрын
Thanks
@mdataullah5489
@mdataullah5489 Жыл бұрын
Could you give us the source code? It will help us a lot and thank you so much!
@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?
@dbestech
@dbestech 2 жыл бұрын
wait pls. I need to answer it carefully
@samir9932
@samir9932 2 жыл бұрын
Is this the video you mentioned in community section?
@dbestech
@dbestech 2 жыл бұрын
no
@dbestech
@dbestech 2 жыл бұрын
It covers the basic
@samir9932
@samir9932 2 жыл бұрын
Thanks 😊
@harloom9603
@harloom9603 2 жыл бұрын
Please share tutorial widget test and unit testing
@dbestech
@dbestech 2 жыл бұрын
will cover
@balaminediakhaby7581
@balaminediakhaby7581 Жыл бұрын
would you mind sharing the repo of the project please
@dbestech
@dbestech Жыл бұрын
Here we go learnflutter.co/flutter-bloc-http-get-example-fetch-data-from-server/
@peshawaamin3083
@peshawaamin3083 2 жыл бұрын
❤️❤️
@66caferali66
@66caferali66 Жыл бұрын
aslm
@kingmega8730
@kingmega8730 2 жыл бұрын
Wa alaiku musslam
@cana_369
@cana_369 Жыл бұрын
where can i get the code
@dbestech
@dbestech Жыл бұрын
There’s link for it in the description
@MoisesDavidGomezMedina
@MoisesDavidGomezMedina Жыл бұрын
@@dbestech where? I check the description, but I can't see the code for the repo of this tutorial
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 209 МЛН
Мы сделали гигантские сухарики!  #большаяеда
00:44
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН
REST Call with Flutter - Http methods
19:55
CodeX
Рет қаралды 70 М.
BLoC Pattern with Flutter || State Management
22:50
CodeX
Рет қаралды 95 М.
microsoft doubles down on recording your screen
10:00
Low Level Learning
Рет қаралды 38 М.
Login UI using BLoC with Flutter | Day 21 - #30DaysOfFlutter
36:23
API call using Cubit | Flutter Bloc | Flutter State Management
12:49
Nitish Kumar Singh
Рет қаралды 12 М.
Rust Axum Production Coding (E01 - Rust Web App Production Coding)
3:53:02
Flutter architecture and problem solving
42:07
dbestech
Рет қаралды 1,3 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 209 МЛН