REST API with Flutter | Step by step tutorial

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

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

  • @CodeXdev
    @CodeXdev  2 года назад +12

    Git Source: github.com/afzalali15/REST-API-with-Flutter

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

      can you explaine Post, delete and put also???

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

      Sir I am working on flutter connect moodle API is there any way I can get real-time data please help me thank you

  • @adeelshahid623
    @adeelshahid623 2 года назад +51

    I'm 3 years experienced ionic Angular Mobile App developer. I've started flutter development two days ago😀 because I've to deal with a flutter E-Commerce project. So the point is being an experienced developer I can say that watching your video is worth going. Thanks for such good Stuff May Allah bless you.

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

      Thanks for sharing 😍

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

      Brother plz help !
      I have 2 months left for the completion of my graduation , i know the basics of flutter , api , few sorting algorithms . How can i be job ready as flutter developer in 2 months .?

  • @fal3881
    @fal3881 7 месяцев назад +3

    in 12 minute i learn 3 things
    Flutter, Flutter applying API, and API it self
    kudos

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

    Wow, i feel so stupid right now, i've been struggling with APIs for over a week now and i am just 2 mins in and i am 10x smarter, thanks

  • @kobbleton
    @kobbleton 2 года назад +8

    Thanks a lot for this tutorial! 🔥 As for a beginer API calls was a real nightmare for me. But with your tutorial everything gets nice and clear for me. I'm sure with practice it will become like a second nature! Appreciate your effort a lot! 🙏🏻

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

    Thanks for the video, really helpful, anyone just getting into flutter and learn http request needs to watch this. Alot has actually changed in a couple of months. Especially with null safety.

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

      Thank you so much 😍

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

    you are one of the good flutter guy. impressive tutorial. I hope people will recognize you more.

  • @CodeXdev
    @CodeXdev  2 года назад +11

    Can we get 1K likes in a week 🥰😉

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

      Yes

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

      Sir Please make a video on socket api please please please

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

    You explain very well and logically. Thank you for your good videos bro. In the hope of Allah, you will be more successful than you are.

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

    Production quality is so much better. Same info covered in shorter time. Great work.

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

      Much appreciated!

  • @VidaeSaude78
    @VidaeSaude78 2 года назад +5

    Obrigado mestre!continue com o ótimo conteúdo!saudações do Brasil

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

    Finally I found what I've been looking for. Thanks! :)

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

    thank you.. clear and straight forward to jump forward to implement api in flutter ❤

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

      Thank you so much @Bijak :)

  • @e-tech7509
    @e-tech7509 2 года назад

    i subscribed because i loved the way you present it

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

      Amazing, working hard to produce more awesome content. 😍

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

    Truly great tutorial, exceptional content and style!

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

    Great work ever sir.... Uh didn't waste a single second👍

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

      Thank you so much 😀

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

    Really and extremely helpful nice job 👌🏾👍🏾

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

    Thank you for this tutorial. You just earned a new sub

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

    Kindly Post Complete Rest Api Model Which Means Multiple API Data Fetch , API Parameters , Headers Concept Returning Data By Validating Headers , Multiple Endpoints This Could be Help Us lot

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

      Yes, good suggestion for advance level tutorial

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

    Thankyou so much, I don't have words.

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

      You already wrote 7 words😜, thank you for the feedback 😍

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

    Excellent Tutorial Thanks for that 👏👏👏

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

      Glad it was helpful!

  • @proNOOBIE_
    @proNOOBIE_ 2 года назад +4

    It would be nice if there was a video explaining the implementation of search bar

  • @c-lawbeats4594
    @c-lawbeats4594 Год назад +1

    thanks for the helpful video. whenever i navigate into a page that requests data, i get a "null check operator used on a null value" error screen for like 0.1 seconds. then page loads with no problem. any idea why?

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

    Kindly Make a detailed tutorial of BLOC...

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

    incredibly well explained. Thank you!

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

      Glad you liked it!

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

    cThis very nice video than other api video of your channel . Can u give the video of all crud operation for same api. that will be very helpful.

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

    Hello, this is a very well-explained video! My request: could you please combine it with the GET and POST method for this API topic using HTTP?

    • @CodeXdev
      @CodeXdev  2 года назад +4

      Thanks for feedback 😍 Will do a video covering GET, POST, PUT n DELETE 👍🏼

  • @KojiKazama
    @KojiKazama 5 месяцев назад

    Thanks. At 6:15 you mention that it is recommended to create an http client instance. By that, do you mean a global variable in the class? If so, would this class be static or a singleton to avoid re-instantiating the client instance? This is what I want to build for my project, that will also handle authentication, so with each call, do a check of the current token expiry datetime subtract the current datetime to see if my token is still valid, and if not, re-authenticate, update the auth headers and continue with the request.
    What I can't find is whether I should do this static class, or extend http client (or both). What are Flutter industry standards?

  • @rajadurai.
    @rajadurai. 2 года назад

    Last few yrs i following your chennal . I saw all video and also live stream.can you give dedicated video for bloc .

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

      Thank you so much for being connected with CodeX. I will try to cover Bloc in of my video.. but you can get fair idea looking at StreamController video on my channel.

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

    hindos i love you 🔥🔥🔥🔥🔥🔥 ireally apreciate it bro

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

    U r just awesome , waiting for more such quality content🥰🥰🥰🥰🥰

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

      Subscribing is the only option 😆 see you in the next video 👍🏼

  • @chathurauddeepanaranathung9502

    This is wowwwwwwwwww broo... Keep it up

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

      Thank you so much 😀

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

    Thanks, this content is meaty!

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

    Thanks, this vídeo helps me a lot

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

    I want to learn how to handle apiKey and accessToken on real projects.
    Please do same using RapidApi endpoint to fetch list of soccer teams and few meta data.

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

      RapidApi itself requires some knowledge to setup and get the access token, Currently this tutorial only teaches the basic of API. Hopefully in future I will do tutorial with custom APIs

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

      @@CodeXdev i agree with you that it's not an easy challenge.
      However, i'll be very pleased if you attend to my request.

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

    Thanks again for the tutorial! i got an issue my vscode complains when i try to return postFromJson(json); it looks like the method is not working

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

    Sir plz make a video on isolates. And how to use isolates with api

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

    After long time n yaa thank you for the tshirt 🤝🏽🤝🏽

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

      Yeah, I was on vacation and didn't managed to upload, but now I am back!

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

    Love it 💕 thanks for the great knowledge

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

    You are the best ❤

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

    yeap its run totally thanks dude

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

    Hey! Can you make a tutorial on how to make geofence in Flutter ?

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

    Great content! Thank you

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

    Thank you Brother🤩

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

    Wonderful bro outstanding ❤️❤️❤️❤️ one request please continue this for delete and update kindly 🙏🙏🙏

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

      I will try my best

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

      @@CodeXdev yes bro please my flutter exams r in 2 weeks

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

    Thank you very much!

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

    Awesome! Thanks!

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

    Amazing! THANK YOU!!!!!

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

    easy ! this is greay sir

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

    Great tutorial! Can you please provide a github repo for your code

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

      In the pinned comment!

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

    That notification is very disturbing bro 😅😅

  • @オタヴィオルイス
    @オタヴィオルイス Год назад

    I owe you my life *bows*

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

    sir , make video like this but using DIO. what is difference DIO and HTTP ? which one is better ?

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

    Super Bro lot of thanks

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

    Awesome. Can you make a video showing how to create our own rest api and connect to SQL server that will a great help. Thanks in advance

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

    Thanks for the video.

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

    you are the best

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

    thanks you so much , great !!!!!

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

    jestes szefem ziomek, ale i tak nie oddalo pozniej

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

    i was finding the exact tutorial...thankyou so much.
    can you also do firebase tutorial and sql database plsss

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

      Great to hear that it helped, Surely planning Firebase tutorials soon!

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

    life saver

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

    So this is GET operation, what about POST?

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

    hlw sir your way of teaching is too good, can you make a video on API integration with get and post method together on a bigger project

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

      Sure, working on it ☺️

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

      @@CodeXdev when will it release?

  • @hellgaming5921
    @hellgaming5921 4 месяца назад

    Sir I have done it and am using it to get news in the app from a free api but the problem I am facing is that there are a limited number of requests I can make which turns into an error, can you tell how we can create our own apis with default data in it to show I. Our UI.

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

    Great tutorial

  • @ViníciusSoares-s6b
    @ViníciusSoares-s6b Год назад

    Amazing!!!!

  • @poochaser6618
    @poochaser6618 4 месяца назад

    what you meant by restful api integration ,because the api integration must follow some rule to implement rest ful api integration? otherwise it's just only api integration

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

    Can you make a video on Mvvm with api calling using getX and with pagination as well?

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

      I have a video for API calling using GetX... you need to learn pagination separately and apply in this 😉👍🏼

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

    Hi bro,
    can you please do a tutorial on flutter php mysql REST API...that would be so much helpful to me.

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

    Good job

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

    thank you amazing tuto

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

    Perfect. Bravo.

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

    Great stuff

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

    Please make a complete free course for flutter

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

    I'm getting these two errors.
    1. The body might complete normally, causing 'null' to be returned, but the return type, 'FutureOr', is a potentially non-nullable type.
    Try adding either a return or a throw statement at the end.
    2. A value of type 'Post' can't be returned from the method 'getPosts' because it has a return type of 'Future'.

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

      did u get a fix for the second one?

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

      Did you solve the second error?

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

      Can you report this on GitHub, I will have a look at the code and suggest potential fix

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

      @@CodeXdev Quicktype.io does not return the same code showed in the video, I fixed the error by copying your file post.dart (The lines in question are, in the video, the 7th and the 8th)

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

    life saver!

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

    thanks for the video. how to do when api key is needed?

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

    Great video indeed. How are you bringing up those context menus to create the widgets? Is there an extension you have to install?

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

      Thats in built, command+. on mac system

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

    thanks you man

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

    Amazing tutorial❤

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

      Thank you! Cheers!

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

    can you show us to load local json data?

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

    Great tutorial
    i installed your code on android phone and the data never loads. the screen stays on loading page. any reason why. it works on my computer but when i build the apk and install on android phone it hangs

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

      Internet connection, either you don’t have permission in manifest or you don’t have data 😬

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

    Plz make some videos for firebase.

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

    Cool ❤‍🔥

  • @MohammedIrfan-eq2ix
    @MohammedIrfan-eq2ix 2 года назад

    Well lockdown started with Blender but since my laptop can't handle it, I've relocated

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

      Shifted to Flutter? FYI, Blender is fun and I love to spend some time there cause it gives my imagination wings.

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

    Hey, thanks for your tutorials, I'm a big fan. I wanted to ask which software you use to record and edit your videos.

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

      I record using OBS and edit inside Premier Pro

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

      @@CodeXdev thanks

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

    Thanks for that claps🎉

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

    Awesome...thank you...

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

      Welcome 😊 appreciate your comment!

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

    We can also use Json to dart plugin, if you use android studio

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

      Yes.. this is just one of the options!

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

    Bro please complete curd ✌️✌️

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

    one video on connecting blogger api v3 with flutter please
    if possible tomorrow...
    waiting for your positive response
    thank you

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

      😜 development doesnt work like that. you need to book paid consultation for this. BMC is one of the option

  • @KJ-ve3ld
    @KJ-ve3ld Год назад

    Can I use the same code to access users?
    How to do it if I have application password of my WordPress website?

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

    Can anyone help me in this I am getting error in this line of code.
    posts = await RemoteService().getPosts();

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

      What is that error? You can share on discord group

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

    Can you help me
    I am stuck on google map
    How can I visible all markers info window???
    Please

  • @harshchudasma-it3394
    @harshchudasma-it3394 2 года назад +1

    Hello, Please Give Me a Link of Your Github Account to Some Project for How can we SetUp For Project Routes,Utils,Modules,CommonConstant in Getx

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

    Amazing

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

      Thanks for listening

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

    subscribers done🇧🇩🇧🇩

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

    If i don't have a json file and want to get data displayed in specific file , how to do this?

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

    are you have a videos auth login using rest api in flutter, bro?

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

    Hello there,thanks for the great work I really learned a lot but I wanna ask a question. How can I turn this a news app? How should replace the news api into this? Yeah I know there is a lot of examples of that but they're too old

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

      Change URL, replace model with News model and you'r done!