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

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ •

  • @zainroyan1556
    @zainroyan1556 2 роки тому +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  2 роки тому

      You are most welcome

    • @zainroyan1556
      @zainroyan1556 2 роки тому +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

  • @xdy9494
    @xdy9494 7 місяців тому +1

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

    • @dbestech
      @dbestech  7 місяців тому +1

      You're very welcome!

  • @musoxon_
    @musoxon_ Рік тому

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

  • @Patarringle
    @Patarringle 2 роки тому +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  2 роки тому

      You are most welcome

  • @Charly9K
    @Charly9K Рік тому

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

  • @Ggbebe373
    @Ggbebe373 Рік тому +1

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

  • @DavideBelardi
    @DavideBelardi 2 роки тому +3

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

  • @borissoto
    @borissoto Рік тому

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

  • @azamovdev
    @azamovdev Рік тому +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

  • @maksmedvedev1207
    @maksmedvedev1207 2 роки тому

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

  • @abass586
    @abass586 2 роки тому

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

  • @OfficialCodeHub
    @OfficialCodeHub Рік тому

    best tutorial on bloc 👍👍

  • @angelsureshkarki
    @angelsureshkarki 2 роки тому +1

    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

  • @kowsitweencraft
    @kowsitweencraft 2 роки тому

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

    • @dbestech
      @dbestech  2 роки тому +1

      Yes, will come more

  • @pedroeduardoquinonesgarcia1080
    @pedroeduardoquinonesgarcia1080 2 роки тому

    Good tutorial, now I understand flutter_bloc, thank you.

  • @priyanshupaliwal8548
    @priyanshupaliwal8548 Рік тому

    Great explanation, Loved the content🤩

  • @ykmusicpro3624
    @ykmusicpro3624 Рік тому

    U are the best teacher thank u so much Sir.

  • @subsoho
    @subsoho 2 роки тому +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.

  • @ВованчоХБКовский

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

  • @fluttterdev1k
    @fluttterdev1k Рік тому

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

  • @ImmanuelJohn-cv4ke
    @ImmanuelJohn-cv4ke Рік тому

    Excellent 🤩🤩

  • @calvinandhika
    @calvinandhika 2 роки тому

    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

  • @islamimam_
    @islamimam_ Рік тому

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

  • @deedev7279
    @deedev7279 2 роки тому

    Salam bro, you are the best

    • @dbestech
      @dbestech  2 роки тому +1

      You are the best

    • @deedev7279
      @deedev7279 2 роки тому

      Can we inject multiple states for builder ?

    • @dbestech
      @dbestech  2 роки тому +1

      @@deedev7279 I guess no. Only one state at one time. But you can do list of state classes

    • @deedev7279
      @deedev7279 2 роки тому

      @@dbestech can you suggest example code or article ?

  • @kazerdira4704
    @kazerdira4704 8 місяців тому

    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  8 місяців тому

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

  • @fluttermakers
    @fluttermakers 2 роки тому

    good video i subscribed 👍😉

    • @dbestech
      @dbestech  2 роки тому

      Thanks for the sub!

  • @rajadurai.
    @rajadurai. 2 роки тому

    It's useful my learning

  • @nahomersom406
    @nahomersom406 2 роки тому

    Thanks a lot, well explained.

  • @juanpbloballesterossos3686
    @juanpbloballesterossos3686 8 місяців тому

    Muchas gracias me salvaste la vida

    • @dbestech
      @dbestech  7 місяців тому

      You are welcome. like and share

  • @seamensclubaihub
    @seamensclubaihub 2 роки тому

    Huge thanks! Cool!

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

  • @erey7830
    @erey7830 2 роки тому

    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?

  • @sangamsingh6866
    @sangamsingh6866 2 роки тому

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

    • @dbestech
      @dbestech  2 роки тому +1

      I will cover soon

  • @samir9932
    @samir9932 2 роки тому

    Is this the video you mentioned in community section?

  • @bobhero7
    @bobhero7 2 роки тому +1

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

  • @gyanupadhyay9473
    @gyanupadhyay9473 2 роки тому +1

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

  • @vianeyvargas7736
    @vianeyvargas7736 2 роки тому +1

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

    • @dbestech
      @dbestech  2 роки тому +1

      Great suggestion!

  • @subodhrai7500
    @subodhrai7500 2 роки тому

    Great

  • @reiaxel8285
    @reiaxel8285 2 роки тому

    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  2 роки тому

      You can.

    • @subsoho
      @subsoho 2 роки тому

      You use bloc listener when you need to do something not directly related to ui widgets like navigation or snackbars.

  • @sujithsureshkumar
    @sujithsureshkumar 2 роки тому

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

    • @dbestech
      @dbestech  2 роки тому

      for network request

  • @memodelapena2890
    @memodelapena2890 Рік тому

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

    • @dbestech
      @dbestech  Рік тому

      ua-cam.com/video/dl6oUW6H7yo/v-deo.html this should help you

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

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

  • @khangluonguc5187
    @khangluonguc5187 2 роки тому

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

    • @dbestech
      @dbestech  2 роки тому +1

      I will try thanks

  • @manishkarki8119
    @manishkarki8119 Рік тому

    do you have git?

  • @mayogarcia5795
    @mayogarcia5795 2 роки тому

    Thanks

  • @rsufiyand
    @rsufiyand 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 роки тому +1

      wait pls. I need to answer it carefully

  • @iamd.7
    @iamd.7 2 роки тому

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

  • @ismoilazamov9337
    @ismoilazamov9337 Рік тому

    👍👌👌👌👌👌

  • @haonguyenvinh4092
    @haonguyenvinh4092 5 місяців тому

    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  5 місяців тому +1

      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 5 місяців тому

      @@dbestech thank you

  • @handulewauka6977
    @handulewauka6977 2 роки тому

    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  2 роки тому

      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

  • @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 роки тому

      ua-cam.com/video/qHkHcDByb5g/v-deo.html have you tried this?

  • @balaminediakhaby7581
    @balaminediakhaby7581 2 роки тому

    would you mind sharing the repo of the project please

    • @dbestech
      @dbestech  2 роки тому

      Here we go learnflutter.co/flutter-bloc-http-get-example-fetch-data-from-server/

  • @harloom9603
    @harloom9603 2 роки тому

    Please share tutorial widget test and unit testing

  • @peshawaamin3083
    @peshawaamin3083 2 роки тому

    ❤️❤️

  • @mdataullah5489
    @mdataullah5489 Рік тому

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

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

  • @66caferali66
    @66caferali66 Рік тому

    aslm