Тёмный

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

dbestech
Подписаться 126 тыс.
Просмотров 47 тыс.
50% 1

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

Наука

Опубликовано:

 

14 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 120   
@zainroyan1556
@zainroyan1556 Год назад
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 Год назад
You are most welcome
@zainroyan1556
@zainroyan1556 Год назад
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 2 месяца назад
this is the easiest flutter bloc tutorial to understand I have ever found in the entire youtube! thanks for thisss
@dbestech
@dbestech 2 месяца назад
You're very welcome!
@musoxon_
@musoxon_ Год назад
I think this is the best explanation I found on RU-vid about Bloc, Jaazakumullohu xoyron kasiron.
@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
@abass586
@abass586 Год назад
Great tutorial, i'm still trying to figure out how to properly use blocs and this helped. Thanks you sir!
@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!
@borissoto
@borissoto Год назад
this is by far the best tutorial about flutter bloc, thanks a lot
@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
@DavideBelardi
@DavideBelardi Год назад
Best tutorial ever to learn the BLoC Pattern, seriously good!
@dbestech
@dbestech Год назад
Glad it was helpful!
@angecyrillenoutchogbe3226
@angecyrillenoutchogbe3226 Год назад
you're right
@maksmedvedev1207
@maksmedvedev1207 Год назад
Ohh man. Its the simplest tutorial. Thank you so much!!!😃
@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.
@FreeTrained
@FreeTrained 10 месяцев назад
best tutorial on bloc 👍👍
@priyanshupaliwal8548
@priyanshupaliwal8548 9 месяцев назад
Great explanation, Loved the content🤩
@pedroeduardoquinonesgarcia1080
Good tutorial, now I understand flutter_bloc, thank you.
@dbestech
@dbestech Год назад
most welcome
@nahomersom406
@nahomersom406 Год назад
Thanks a lot, well explained.
@dbestech
@dbestech Год назад
You are welcome!
@kowsitweencraft
@kowsitweencraft Год назад
im new to bloc..and this is very clear..plz upload this kind of videoes
@dbestech
@dbestech Год назад
Yes, will come more
@ykmusicpro3624
@ykmusicpro3624 Год назад
U are the best teacher thank u so much Sir.
@dbestech
@dbestech Год назад
So nice of you
@angelsureshkarki
@angelsureshkarki Год назад
Sir i find Bloc very beautiful... thank u for this great concept!
@dbestech
@dbestech Год назад
You are most welcome. Yes coming more. Now I love Getx and BLoC. They are great. what's your most favorite now?
@alisampson6639
@alisampson6639 Год назад
@@dbestech Getx is my favorite now. I love the route management feature
@fluttterdev1k
@fluttterdev1k 11 месяцев назад
thanks master , its really useful lessons please just keep going ;;
@dbestech
@dbestech 11 месяцев назад
Thank you, I will
@user-xx9rp4gp9g
@user-xx9rp4gp9g Год назад
Bro that's cool, now I understand everything, thank you)))
@dbestech
@dbestech Год назад
Glad to hear that!
@seamensclubltd7603
@seamensclubltd7603 Год назад
Huge thanks! Cool!
@dbestech
@dbestech Год назад
No problem!
@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
@rajadurai.
@rajadurai. Год назад
It's useful my learning
@dbestech
@dbestech Год назад
Glad to hear that
@islamimam_
@islamimam_ 11 месяцев назад
thank you sir i will be honored if we meet someday to thank you in person
@subodhrai7500
@subodhrai7500 Год назад
Great
@juanpbloballesterossos3686
@juanpbloballesterossos3686 3 месяца назад
Muchas gracias me salvaste la vida
@dbestech
@dbestech 2 месяца назад
You are welcome. like and share
@ImmanuelJohn-cv4ke
@ImmanuelJohn-cv4ke Год назад
Excellent 🤩🤩
@dbestech
@dbestech Год назад
Thank you! Cheers!
@fluttermakers
@fluttermakers Год назад
good video i subscribed 👍😉
@dbestech
@dbestech Год назад
Thanks for the sub!
@mayogarcia5795
@mayogarcia5795 Год назад
Thanks
@dbestech
@dbestech Год назад
Welcome
@sangamsingh6866
@sangamsingh6866 Год назад
Nice Explanation. Can you please add post, put and delete methods as well for Bloc.?
@dbestech
@dbestech Год назад
I will cover soon
@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 ?
@Jose.Lourenco
@Jose.Lourenco Год назад
There is a typo in your thumbnail, should be "Http Request". Thanks for the video and looking for the next one.
@dbestech
@dbestech Год назад
Oh thanks!
@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?
@vianeyvargas7736
@vianeyvargas7736 Год назад
Excellent vídeo great, please upload vídeo Google Maps, GPS, ando Location and tracking using flutter bloc? Please
@dbestech
@dbestech Год назад
Great suggestion!
@bobhero7
@bobhero7 Год назад
Please make a step by step video on expansion tile flutter.. Humble request 🙏🙏
@dbestech
@dbestech Год назад
I will
@peshawaamin3083
@peshawaamin3083 Год назад
❤️❤️
@gyanupadhyay9473
@gyanupadhyay9473 Год назад
nice video bro can u make video on clean architechture + Bloc + TDD(test driven development)
@dbestech
@dbestech Год назад
I will try
@amitaiefrati4111
@amitaiefrati4111 Год назад
This will be great
@meek6836
@meek6836 Год назад
@@dbestech it will be awesome
@sosoTheLittle
@sosoTheLittle Год назад
Check resocoder channel
@meek6836
@meek6836 Год назад
@@sosoTheLittle thats outdated
@deenaadam5878
@deenaadam5878 Год назад
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 Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qHkHcDByb5g.html have you tried this?
@khangluonguc5187
@khangluonguc5187 Год назад
You can do a tutorial on infinite scroll pagination when using Bloc with Clean Architecture?
@dbestech
@dbestech Год назад
I will try thanks
@iamd.7
@iamd.7 Год назад
please make a music application with all functionality it would be soo helpful.
@dbestech
@dbestech Год назад
Yes, I will
@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 3 месяца назад
I did not use RepositoryProvider in Udemy either. There are other ways to do things.
@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.
@ismoilazamov9337
@ismoilazamov9337 Год назад
👍👌👌👌👌👌
@dbestech
@dbestech Год назад
Thanks
@samir9932
@samir9932 Год назад
Is this the video you mentioned in community section?
@dbestech
@dbestech Год назад
no
@dbestech
@dbestech Год назад
It covers the basic
@samir9932
@samir9932 Год назад
Thanks 😊
@harloom9603
@harloom9603 Год назад
Please share tutorial widget test and unit testing
@dbestech
@dbestech Год назад
will cover
@mdataullah5489
@mdataullah5489 Год назад
Could you give us the source code? It will help us a lot and thank you so much!
@kingmega8730
@kingmega8730 Год назад
Wa alaiku musslam
@SajjadHussain-iu6jv
@SajjadHussain-iu6jv Год назад
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 Год назад
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 Год назад
@@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 Год назад
@@SajjadHussain-iu6jv how about hive ? Or sqflite
@manishkarki8119
@manishkarki8119 9 месяцев назад
do you have git?
@memodelapena2890
@memodelapena2890 Год назад
Hi, how can I pass the User's data to Details Screen using the "Generated named routes"?
@dbestech
@dbestech Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dl6oUW6H7yo.html this should help you
@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
@66caferali66
@66caferali66 Год назад
aslm
@sujithsureshkumar
@sujithsureshkumar Год назад
Hai, I have a doubt that what is the use of Wrapping with RepositoryProvider?
@dbestech
@dbestech Год назад
for network request
@fuadikurniawan2850
@fuadikurniawan2850 Год назад
Sir, why you call API in the build, the documentation said it's better call it in initState, CMIIW
@dbestech
@dbestech Год назад
that's true. we need to optimize that. But there are many ways to do it.
@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?
@dbestech
@dbestech Год назад
wait pls. I need to answer it carefully
@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/
@haonguyenvinh4092
@haonguyenvinh4092 25 дней назад
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 24 дня назад
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 24 дня назад
@@dbestech thank you
@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
Далее
Brawl Stars Animation: PAINT BRAWL STARTS NOW!
00:52
Water powered timers hidden in public restrooms
13:12
Просмотров 728 тыс.
BLoC Pattern with Flutter || State Management
22:50
Просмотров 95 тыс.
Wait... PostgreSQL can do WHAT?
20:33
Просмотров 191 тыс.
REST Call with Flutter - Http methods
19:55
Просмотров 69 тыс.
Every Flutter App needs this!
10:15
Просмотров 55 тыс.