Flutter Consume Rest API With Best Practices

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

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

  • @codingorbit
    @codingorbit  2 года назад +6

    You can find the source code for this project here: github.com/Coding-Orbit/flutter_consume_api.git

  • @khanisrarahmedalihusain
    @khanisrarahmedalihusain 2 года назад +6

    Really, learnt out of the box way of Integrating network services, thanks a lot

  • @venkateshkarra6193
    @venkateshkarra6193 2 года назад +1

    Hi, Thank you very much for this video. It helped me a lot, can you please tell what tool you are using for generating the model classes

  • @rojgaariyatra8684
    @rojgaariyatra8684 2 года назад

    This channel gonna be Rock. checked all videos and followed them in an easy way. best for beginners. Salute you.

    • @codingorbit
      @codingorbit  2 года назад +1

      Thank you so much! Glad you liked them

  • @rayhanaswiansyah5856
    @rayhanaswiansyah5856 2 года назад

    Excelent video, thanks you. It helped me a lot.

  • @t_tek760
    @t_tek760 2 года назад +1

    Awesome!… can you integrate the provider state management and url luncher to this? so we could go to the article source website… thanks 🙏

    • @codingorbit
      @codingorbit  2 года назад

      I encourage you to do that. Clone the repo and try to do it yourself 👍🏻

    • @t_tek760
      @t_tek760 2 года назад

      @@codingorbit okay sir… I’ll give it a try… thanks boss.

    • @codingorbit
      @codingorbit  2 года назад

      Most welcome! You can do it 💪

  • @CheloWasabyx
    @CheloWasabyx 2 года назад

    Excelent Video, was precisely what I was looking for, great help!
    Quick question, how could I make it so the query parameters can change based on what the user wants. For example making it so you can choose the country you want to see news from?

    • @codingorbit
      @codingorbit  2 года назад

      You will have to create some sort of ui to handle that extract the country selected by the user and then call the api based on what the user selected.

  • @rogerb2280
    @rogerb2280 2 года назад

    great video, thanks

  • @jailsoncarneiro4936
    @jailsoncarneiro4936 2 года назад

    Great Job!

  • @josephampah9653
    @josephampah9653 2 года назад

    Please when I run the flutter pub run build_runner build, no file was created, any ideal?

    • @codingorbit
      @codingorbit  2 года назад

      Make sure the project is error free

  • @riskzerobeatz
    @riskzerobeatz 2 года назад +1

    Nice!

  • @bernard9163
    @bernard9163 2 года назад +2

    I/flutter ( 5208): Response 200
    I/flutter ( 5208): Error type-NetworkResponseErrorType.didNotSucceed - Message unknown
    hi sir, do you have any idea on this, it show the the loading only instead of the the items. thank you in advance

    • @codingorbit
      @codingorbit  2 года назад

      I think its from the is valid json method try removing it

  • @caldewoodalikula8819
    @caldewoodalikula8819 2 года назад

    when i use json serializable i always get dart:mirror error, need help getting around that

    • @codingorbit
      @codingorbit  2 года назад

      Im sorry I don’t have an idea about that

  • @justincoding
    @justincoding 2 года назад

    can u try google sheets api with flutter

  • @Dragon878787878
    @Dragon878787878 2 года назад +3

    شرح رائع. هل انت عربي

    • @codingorbit
      @codingorbit  2 года назад +3

      شكرا اخي. نعم انا عربي

    • @Dragon878787878
      @Dragon878787878 2 года назад

      عندك قناه عربي ولو الشرح كانك تحجي عربي 👍🏻👍

    • @codingorbit
      @codingorbit  2 года назад

      @@Dragon878787878 لا والله بس هاي القناة

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

    👍🏾

  • @palashshrivastava1055
    @palashshrivastava1055 2 года назад

    Can we get source code of this project ?

    • @codingorbit
      @codingorbit  2 года назад

      Yes, sure! I will pin it now

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

    what is the difference between this constructor : const construct. ( ); and this one : construct( );

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

      In order to make this class a static class and give a warning that it can't be initialized we use const construct._();

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

      @@codingorbit thank you

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

    Sorry but this is not teaching, this is copy/pasting and voice annoatating what you do, vs actually explaining what's going on. First you don't say where the obviously generated JSON-to-class files come from. That's where it start. And then you go on endlessly rambling about then we copy this here and paste this there.
    There is no learning involved. Why do you create this and that. Not a good video.

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

      You might be right i didn't want to make the video longer than it already is, but that isn't an excuse. Thanks for pointing that out!