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
  • НаукаНаука

Комментарии • 117

  • @musoxon_
    @musoxon_ Год назад

    I think this is the best explanation I found on RUclips about Bloc, Jaazakumullohu xoyron kasiron.

  • @abass586
    @abass586 Год назад

    Great tutorial, i'm still trying to figure out how to properly use blocs and this helped.
    Thanks you sir!

  • @Patarringle
    @Patarringle Год назад +1

    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

  • @zainroyan1556
    @zainroyan1556 Год назад +8

    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 Год назад +1

      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

  • @borissoto
    @borissoto 11 месяцев назад

    this is by far the best tutorial about flutter bloc, thanks a lot

  • @xdy9494
    @xdy9494 Месяц назад

    this is the easiest flutter bloc tutorial to understand I have ever found in the entire youtube! thanks for thisss

    • @dbestech
      @dbestech  Месяц назад +1

      You're very welcome!

  • @DavideBelardi
    @DavideBelardi Год назад +3

    Best tutorial ever to learn the BLoC Pattern, seriously good!

  • @Charly9K
    @Charly9K Год назад

    coming from getx this has been the best bloc tutorial i have found, thank you sir!

  • @maksmedvedev1207
    @maksmedvedev1207 Год назад

    Ohh man. Its the simplest tutorial. Thank you so much!!!😃

  • @Ggbebe373
    @Ggbebe373 11 месяцев назад +1

    Best tutorial so far for the Bloc pattern. Extremely helpful. It’s easy to understand for beginners. 👍 Thank you so much!

    • @dbestech
      @dbestech  11 месяцев назад

      Glad it was helpful!

  • @priyanshupaliwal8548
    @priyanshupaliwal8548 8 месяцев назад

    Great explanation, Loved the content🤩

  • @FreeTrained
    @FreeTrained 9 месяцев назад

    best tutorial on bloc 👍👍

  • @pedroeduardoquinonesgarcia1080

    Good tutorial, now I understand flutter_bloc, thank you.

  • @saikou_absolute
    @saikou_absolute Год назад +1

    Assalomu alaykum . this guide is very useful i am learning flutter now it helped me a lot. good luck with your work. great content

  • @nahomersom406
    @nahomersom406 Год назад

    Thanks a lot, well explained.

  • @kowsitweencraft
    @kowsitweencraft Год назад

    im new to bloc..and this is very clear..plz upload this kind of videoes

    • @dbestech
      @dbestech  Год назад +1

      Yes, will come more

  • @ykmusicpro3624
    @ykmusicpro3624 Год назад

    U are the best teacher thank u so much Sir.

  • @angelsureshkarki
    @angelsureshkarki Год назад +1

    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

  • @user-xx9rp4gp9g
    @user-xx9rp4gp9g Год назад

    Bro that's cool, now I understand everything, thank you)))

  • @seamensclubltd7603
    @seamensclubltd7603 Год назад

    Huge thanks! Cool!

  • @rajadurai.
    @rajadurai. Год назад

    It's useful my learning

  • @fluttterdev1k
    @fluttterdev1k 10 месяцев назад

    thanks master , its really useful lessons please just keep going ;;

    • @dbestech
      @dbestech  10 месяцев назад

      Thank you, I will

  • @juanpbloballesterossos3686
    @juanpbloballesterossos3686 2 месяца назад

    Muchas gracias me salvaste la vida

    • @dbestech
      @dbestech  Месяц назад

      You are welcome. like and share

  • @ImmanuelJohn-cv4ke
    @ImmanuelJohn-cv4ke Год назад

    Excellent 🤩🤩

  • @subodhrai7500
    @subodhrai7500 Год назад

    Great

  • @islamimam_
    @islamimam_ 10 месяцев назад

    thank you sir i will be honored if we meet someday to thank you in person

  • @subsoho
    @subsoho Год назад +2

    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.

  • @fluttermakers
    @fluttermakers Год назад

    good video i subscribed 👍😉

  • @mayogarcia5795
    @mayogarcia5795 Год назад

    Thanks

  • @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

  • @deedev7279
    @deedev7279 Год назад

    Salam bro, you are the best

    • @dbestech
      @dbestech  Год назад +1

      You are the best

    • @deedev7279
      @deedev7279 Год назад

      Can we inject multiple states for builder ?

    • @dbestech
      @dbestech  Год назад +1

      @@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 ?

  • @sangamsingh6866
    @sangamsingh6866 Год назад

    Nice Explanation. Can you please add post, put and delete methods as well for Bloc.?

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

  • @peshawaamin3083
    @peshawaamin3083 Год назад

    ❤️❤️

  • @vianeyvargas7736
    @vianeyvargas7736 Год назад +1

    Excellent vídeo great, please upload vídeo Google Maps, GPS, ando Location and tracking using flutter bloc? Please

  • @bobhero7
    @bobhero7 Год назад +1

    Please make a step by step video on expansion tile flutter..
    Humble request 🙏🙏

  • @ismoilazamov9337
    @ismoilazamov9337 Год назад

    👍👌👌👌👌👌

  • @gyanupadhyay9473
    @gyanupadhyay9473 Год назад +1

    nice video bro can u make video on clean architechture + Bloc + TDD(test driven development)

  • @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?

  • @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  Год назад

      ruclips.net/video/qHkHcDByb5g/видео.html have you tried this?

  • @kingmega8730
    @kingmega8730 Год назад

    Wa alaiku musslam

  • @khangluonguc5187
    @khangluonguc5187 Год назад

    You can do a tutorial on infinite scroll pagination when using Bloc with Clean Architecture?

  • @digambernegi2023
    @digambernegi2023 Год назад

    please make a music application with all functionality it would be soo helpful.

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

  • @harloom9603
    @harloom9603 Год назад

    Please share tutorial widget test and unit testing

  • @kazerdira4704
    @kazerdira4704 3 месяца назад

    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  2 месяца назад

      I did not use RepositoryProvider in Udemy either. There are other ways to do things.

  • @mdataullah5489
    @mdataullah5489 11 месяцев назад

    Could you give us the source code? It will help us a lot and thank you so much!

  • @samir9932
    @samir9932 Год назад

    Is this the video you mentioned in community section?

  • @manishkarki8119
    @manishkarki8119 8 месяцев назад

    do you have git?

  • @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

  • @memodelapena2890
    @memodelapena2890 Год назад

    Hi, how can I pass the User's data to Details Screen using the "Generated named routes"?

    • @dbestech
      @dbestech  Год назад

      ruclips.net/video/dl6oUW6H7yo/видео.html this should help you

  • @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

  • @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/

  • @sujithsureshkumar
    @sujithsureshkumar Год назад

    Hai, I have a doubt that what is the use of Wrapping with RepositoryProvider?

  • @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  Год назад +1

      wait pls. I need to answer it carefully

  • @66caferali66
    @66caferali66 11 месяцев назад

    aslm

  • @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