REST API with Flutter | Step by step tutorial

Sdílet
Vložit
  • čas přidán 29. 08. 2024

Komentáře • 250

  • @CodeXdev
    @CodeXdev  Před 2 lety +11

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

    • @rishi9377
      @rishi9377 Před 2 lety

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

    • @trieudien1990
      @trieudien1990 Před rokem

      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 Před 2 lety +47

    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  Před 2 lety +1

      Thanks for sharing 😍

    • @sumitrawat2289
      @sumitrawat2289 Před 2 lety

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

  • @dammythedesigner
    @dammythedesigner Před 11 měsíci +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 Před rokem +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 Před 2 lety +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.

  • @syedsaniulahsan2669
    @syedsaniulahsan2669 Před 2 lety +1

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

  • @fal3881
    @fal3881 Před 5 měsíci

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

  • @saifshaikh6105
    @saifshaikh6105 Před 2 lety

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

  • @flutterclone1849
    @flutterclone1849 Před 9 měsíci

    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.

  • @CodeXdev
    @CodeXdev  Před 2 lety +10

    Can we get 1K likes in a week 🥰😉

  • @smartcoding__
    @smartcoding__ Před rokem

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

  • @VidaeSaude78
    @VidaeSaude78 Před 2 lety +5

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

  • @calanm7880
    @calanm7880 Před 2 lety +2

    Truly great tutorial, exceptional content and style!

  • @swerarizwan4164
    @swerarizwan4164 Před rokem

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

  • @kajib1
    @kajib1 Před 2 lety

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

    • @CodeXdev
      @CodeXdev  Před 2 lety

      Thank you so much @Bijak :)

  • @e-tech7509
    @e-tech7509 Před rokem

    i subscribed because i loved the way you present it

    • @CodeXdev
      @CodeXdev  Před rokem

      Amazing, working hard to produce more awesome content. 😍

  • @Kefmoles
    @Kefmoles Před rokem

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

  • @jasonbraithwaite9204
    @jasonbraithwaite9204 Před 2 lety +1

    Excellent Tutorial Thanks for that 👏👏👏

  • @animeshbarai6804
    @animeshbarai6804 Před 2 lety

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

    • @CodeXdev
      @CodeXdev  Před 2 lety +1

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

  • @rakulagn4598
    @rakulagn4598 Před 2 lety +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  Před 2 lety +1

      Yes, good suggestion for advance level tutorial

  • @chathurauddeepanaranathung9502

    This is wowwwwwwwwww broo... Keep it up

  • @leleemagnu6831
    @leleemagnu6831 Před rokem

    incredibly well explained. Thank you!

  • @asyraf1004
    @asyraf1004 Před 2 lety +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  Před 2 lety +4

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

  • @kunj_kanani
    @kunj_kanani Před 2 lety

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

    • @CodeXdev
      @CodeXdev  Před 2 lety +1

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

  • @architjain5108
    @architjain5108 Před 2 lety

    Thankyou so much, I don't have words.

    • @CodeXdev
      @CodeXdev  Před 2 lety

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

  • @adityagangane615
    @adityagangane615 Před rokem

    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.

  • @joemdjossou
    @joemdjossou Před rokem

    Really and extremely helpful nice job 👌🏾👍🏾

  • @masterofcampingMOC
    @masterofcampingMOC Před 2 lety

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

  • @c-lawbeats4594
    @c-lawbeats4594 Před rokem +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?

  • @PaschalAOgba
    @PaschalAOgba Před 2 lety +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  Před 2 lety

      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 Před 2 lety

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

  • @proNOOBIE_
    @proNOOBIE_ Před 2 lety +4

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

  • @davidvalencia9813
    @davidvalencia9813 Před rokem

    Thanks, this vídeo helps me a lot

  • @panjavanparivendan3293
    @panjavanparivendan3293 Před rokem +1

    life saver

  • @user-og3ph3ss2n
    @user-og3ph3ss2n Před rokem

    I owe you my life *bows*

  • @abrorshamuradov1572
    @abrorshamuradov1572 Před 2 lety

    you are the best

  • @rajadurai.
    @rajadurai. Před rokem

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

    • @CodeXdev
      @CodeXdev  Před rokem +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.

  • @scalarcoding
    @scalarcoding Před rokem

    Thanks, this content is meaty!

  • @suhailahmad9564
    @suhailahmad9564 Před rokem

    Love it 💕 thanks for the great knowledge

  • @destinygames3449
    @destinygames3449 Před rokem

    You are the best ❤

  • @maxxxtermind
    @maxxxtermind Před 8 měsíci

    Awesome! Thanks!

  • @MatteoMusicStudio
    @MatteoMusicStudio Před 2 lety

    Amazing! THANK YOU!!!!!

  • @auroshisray9140
    @auroshisray9140 Před rokem

    Great content! Thank you

  • @saifazam5838
    @saifazam5838 Před 2 lety

    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

  • @bindusunar8396
    @bindusunar8396 Před rokem

    yeap its run totally thanks dude

  • @nachiketasingh5760
    @nachiketasingh5760 Před rokem

    Thank you Brother🤩

  • @hosseintasm4222
    @hosseintasm4222 Před 2 lety

    Perfect. Bravo.

  • @KojiKazama
    @KojiKazama Před 3 měsíci

    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?

  • @MuhayminHassan
    @MuhayminHassan Před 2 lety

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

    • @CodeXdev
      @CodeXdev  Před 2 lety +1

      I will try my best

    • @MuhayminHassan
      @MuhayminHassan Před 2 lety

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

  • @user-xq2vp3rp2u
    @user-xq2vp3rp2u Před rokem

    Amazing!!!!

  • @shaabzz
    @shaabzz Před 2 lety

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

    • @CodeXdev
      @CodeXdev  Před 2 lety +1

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

  • @nuriddinburkhonov5214

    Thank you very much!

  • @alahamedbasith
    @alahamedbasith Před 2 lety

    Super Bro lot of thanks

  • @Fauzyihsan
    @Fauzyihsan Před rokem

    thanks you man

  • @angeloverlain
    @angeloverlain Před 2 lety

    Great tutorial

  • @meidynsurawinata5874
    @meidynsurawinata5874 Před 2 lety

    Thanks for the video.

  • @chimwemwechawinga2336
    @chimwemwechawinga2336 Před 2 lety

    easy ! this is greay sir

  • @lunaRdeltaY
    @lunaRdeltaY Před 2 lety

    life saver!

  • @HobbitOfCamelot
    @HobbitOfCamelot Před rokem

    jestes szefem ziomek, ale i tak nie oddalo pozniej

  • @ashwing924
    @ashwing924 Před rokem +1

    Kindly Make a detailed tutorial of BLOC...

  • @poochaser6618
    @poochaser6618 Před měsícem

    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

  • @kenbinta2246
    @kenbinta2246 Před 2 lety

    Great stuff

  • @hellgaming5921
    @hellgaming5921 Před měsícem

    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.

  • @shayanmallick6999
    @shayanmallick6999 Před 2 lety

    Amazing tutorial❤

  • @rv9570
    @rv9570 Před 2 lety

    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

  • @walidlaanibi4006
    @walidlaanibi4006 Před rokem

    thank you amazing tuto

  • @quyetlevan6574
    @quyetlevan6574 Před rokem

    thanks you so much , great !!!!!

  • @denistomas33
    @denistomas33 Před 9 měsíci

    Thanks for that claps🎉

  • @heybuddy6438
    @heybuddy6438 Před 2 lety +3

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

  • @bububoy8247
    @bububoy8247 Před 2 lety

    Cool ❤‍🔥

  • @sudhanshunamdev4801
    @sudhanshunamdev4801 Před 2 lety +1

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

  • @codecrafts6726
    @codecrafts6726 Před 2 lety

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

  • @technologyhacks2110
    @technologyhacks2110 Před 2 lety +1

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

  • @user-tu4rw8lb9p
    @user-tu4rw8lb9p Před rokem +1

    So this is GET operation, what about POST?

  • @tedreams
    @tedreams Před rokem

    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

  • @kenann5614
    @kenann5614 Před 2 lety

    Good job

  • @nameisvamshi5129
    @nameisvamshi5129 Před 2 lety +1

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

  • @fernoshaalfaridzi3274
    @fernoshaalfaridzi3274 Před 2 lety

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

  • @buddhikap.desilva2897
    @buddhikap.desilva2897 Před 2 lety

    Cool

  • @TrikNgonlen
    @TrikNgonlen Před 2 lety

    Awesome...thank you...

    • @CodeXdev
      @CodeXdev  Před 2 lety

      Welcome 😊 appreciate your comment!

  • @sounsavdan7086
    @sounsavdan7086 Před 2 lety +1

    can you show us to load local json data?

  • @kutticchathan
    @kutticchathan Před 2 lety

    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  Před 2 lety

      Thats in built, command+. on mac system

  • @sadiaghani3237
    @sadiaghani3237 Před rokem

    Sir mera postFromJson ka method ni arha? Red underline ata ha

  • @ribsk
    @ribsk Před 2 lety

    love you

  • @anozGosai
    @anozGosai Před 2 lety

    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 Před 2 lety

      did u get a fix for the second one?

    • @maurods3151
      @maurods3151 Před rokem

      Did you solve the second error?

    • @CodeXdev
      @CodeXdev  Před rokem

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

    • @maurods3151
      @maurods3151 Před rokem

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

  • @mazenalsakkaf
    @mazenalsakkaf Před 2 lety

    Amazing

  • @KJ-ve3ld
    @KJ-ve3ld Před rokem

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

  • @sidhantburnwal4023
    @sidhantburnwal4023 Před rokem

    why you are using not equal to sign in container section??

  • @elyasnaimzada3919
    @elyasnaimzada3919 Před 2 lety +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  Před 2 lety +1

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

  • @etcworld3660
    @etcworld3660 Před 2 lety

    subscribers done🇧🇩🇧🇩

  • @randomness3588
    @randomness3588 Před 2 lety

    I tried to follow your tutorial but when I pasted the pists from jason place holder to to app.quicktype, following exactly tye way you did it, it gave a different lines of code/model and theres not even a word "class" in it..when I pasted it in my vscode where Im coding flutter, it gave so many errors..what do you think went wrong?..is it really possible that even if I follow you exactly, I will get a different code?..please advise..thanks

    • @CodeXdev
      @CodeXdev  Před 2 lety

      Hello, you should get same class if you have pasted correct json. May be json has changed on jsonplaceholder site but still, it should give you valid class

    • @randomness3588
      @randomness3588 Před 2 lety

      @@CodeXdev that the problem coz it really did not return a class and the size of codes is just about 1/3 of what you got..it's really very few..maybe it changed..anyway, thanks for replying..I appreciate it so much..Im still continuing my self learning via CZcams. Im trying my best because I really want to learn it 👍

    • @CodeXdev
      @CodeXdev  Před 2 lety

      Great to hear that your are putting efforts to learn it, you can join on discord link in description and get some guidance over there

    • @randomness3588
      @randomness3588 Před 2 lety

      @@CodeXdev thanks..joined discord ..my first time to use discord 👍😊

  • @javhaasuhochir8126
    @javhaasuhochir8126 Před rokem

    thanks

  • @mohsinikram8921
    @mohsinikram8921 Před 2 lety +1

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

    • @CodeXdev
      @CodeXdev  Před 2 lety

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

  • @dtube123
    @dtube123 Před 2 lety

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

    • @CodeXdev
      @CodeXdev  Před 2 lety

      Yes.. this is just one of the options!

  • @kms12317
    @kms12317 Před 2 lety

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

  • @alfonsoromero3092
    @alfonsoromero3092 Před 2 lety

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

  • @chiragsingh5701
    @chiragsingh5701 Před 2 lety +1

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

    • @CodeXdev
      @CodeXdev  Před 2 lety

      What is that error? You can share on discord group

  • @faheemahmad3957
    @faheemahmad3957 Před 2 lety +1

    Please make a complete free course for flutter

  • @naimishborad5272
    @naimishborad5272 Před 2 lety +1

    Plz make some videos for firebase.

  • @johnsunnyjohnsunny4296

    sir if i need to fetch login data from my website server and get data to my flutter app..how can i do it sir pls hel me sir

  • @racismoe
    @racismoe Před 2 lety

    Hello sir, I've followed your tutorial and it works perfectly for basic API calls. Unfortunately, I have found difficulties trying to call and display data from APis where data is nested ("id:", "name:", "number:" etc). Do you have any ideas or tutorials that can help me ? I have not found anything helpful on the internet, perhaps I am just bad because I am a beginner but any help would be welcome. Thank you.