REST API with Flutter | Step by step tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 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 ปีที่แล้ว +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  2 ปีที่แล้ว +1

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

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

  • @saifshaikh6105
    @saifshaikh6105 2 ปีที่แล้ว

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

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Much appreciated!

  • @CodeXdev
    @CodeXdev  2 ปีที่แล้ว +10

    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 10 หลายเดือนก่อน

    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  10 หลายเดือนก่อน

      Many many thanks

  • @fal3881
    @fal3881 6 หลายเดือนก่อน

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

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

  • @Kefmoles
    @Kefmoles ปีที่แล้ว

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

  • @swerarizwan4164
    @swerarizwan4164 2 ปีที่แล้ว

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

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Thank you so much 😀

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

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

  • @leleemagnu6831
    @leleemagnu6831 ปีที่แล้ว

    incredibly well explained. Thank you!

    • @CodeXdev
      @CodeXdev  ปีที่แล้ว

      Glad you liked it!

  • @davidvalencia9813
    @davidvalencia9813 ปีที่แล้ว

    Thanks, this vídeo helps me a lot

    • @CodeXdev
      @CodeXdev  ปีที่แล้ว

      Glad it helped

  • @auroshisray9140
    @auroshisray9140 ปีที่แล้ว

    Great content! Thank you

  • @architjain5108
    @architjain5108 2 ปีที่แล้ว

    Thankyou so much, I don't have words.

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

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

  • @YazhiniMalarPari
    @YazhiniMalarPari ปีที่แล้ว +1

    So this is GET operation, what about POST?

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

  • @uzairB533
    @uzairB533 ปีที่แล้ว +1

    That notification is very disturbing bro 😅😅

  • @meidynsurawinata5874
    @meidynsurawinata5874 2 ปีที่แล้ว

    Thanks for the video.

  • @VidaeSaude78
    @VidaeSaude78 2 ปีที่แล้ว +5

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

  • @hosseintasm4222
    @hosseintasm4222 2 ปีที่แล้ว

    Perfect. Bravo.

  • @ViníciusSoares-s6b
    @ViníciusSoares-s6b ปีที่แล้ว

    Amazing!!!!

  • @proNOOBIE_
    @proNOOBIE_ 2 ปีที่แล้ว +4

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

  • @walidlaanibi4006
    @walidlaanibi4006 ปีที่แล้ว

    thank you amazing tuto

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

  • @heybuddy6438
    @heybuddy6438 2 ปีที่แล้ว +3

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

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      In the pinned comment!

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

  • @fernoshaalfaridzi3274
    @fernoshaalfaridzi3274 2 ปีที่แล้ว

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

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

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

  • @faheemahmad3957
    @faheemahmad3957 2 ปีที่แล้ว +1

    Please make a complete free course for flutter

  • @sidhantburnwal4023
    @sidhantburnwal4023 ปีที่แล้ว

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

  • @KojiKazama
    @KojiKazama 4 หลายเดือนก่อน

    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?

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

  • @shayanmallick6999
    @shayanmallick6999 2 ปีที่แล้ว

    Amazing tutorial❤

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Thank you! Cheers!

  • @naimishborad5272
    @naimishborad5272 2 ปีที่แล้ว +1

    Plz make some videos for firebase.

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

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

  • @ashwing924
    @ashwing924 ปีที่แล้ว +1

    Kindly Make a detailed tutorial of BLOC...

  • @sounsavdan7086
    @sounsavdan7086 2 ปีที่แล้ว +1

    can you show us to load local json data?

  • @poochaser6618
    @poochaser6618 2 หลายเดือนก่อน

    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

  • @technologyhacks2110
    @technologyhacks2110 2 ปีที่แล้ว +1

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

  • @sudhanshunamdev4801
    @sudhanshunamdev4801 2 ปีที่แล้ว +1

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

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

  • @hellgaming5921
    @hellgaming5921 2 หลายเดือนก่อน

    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.

  • @javhaasuhochir8126
    @javhaasuhochir8126 ปีที่แล้ว

    thanks

  • @denistomas33
    @denistomas33 10 หลายเดือนก่อน

    Thanks for that claps🎉

  • @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 😉👍🏼

  • @johnsunnyjohnsunny4296
    @johnsunnyjohnsunny4296 2 ปีที่แล้ว

    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

  • @calanm7880
    @calanm7880 2 ปีที่แล้ว +2

    Truly great tutorial, exceptional content and style!

  • @najamurrehman3591
    @najamurrehman3591 2 ปีที่แล้ว

    Sir my app stucked on loading screen and didn't showing data

  • @dimasismu5738
    @dimasismu5738 2 ปีที่แล้ว

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

  • @akagrawal85
    @akagrawal85 ปีที่แล้ว

    Visibility widget not disappear while data is not null

  • @MuhayminHassan
    @MuhayminHassan 2 ปีที่แล้ว

    Bro please complete curd ✌️✌️

  • @randomness3588
    @randomness3588 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      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 2 ปีที่แล้ว

      @@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 TH-cam. Im trying my best because I really want to learn it 👍

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      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 2 ปีที่แล้ว

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

  • @segunthemarketer2195
    @segunthemarketer2195 ปีที่แล้ว

    Okay... This doesn't look easy, at all!

  • @JayNirmalkarx
    @JayNirmalkarx 2 ปีที่แล้ว

    no need to future builder sb alg alg batate hai

  • @panjavanparivendan3293
    @panjavanparivendan3293 ปีที่แล้ว +1

    life saver

  • @RANJEETKUMAR-wz4dg
    @RANJEETKUMAR-wz4dg 2 ปีที่แล้ว

    thanks

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      You're welcome!

  • @k.i.m.5506
    @k.i.m.5506 2 ปีที่แล้ว

    Great work bro!
    Is there a Github link for the code used in the video?

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      I will add in description 👍🏼

  • @racismoe
    @racismoe 2 ปีที่แล้ว

    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.

  • @uniq-game-tounaments
    @uniq-game-tounaments 2 ปีที่แล้ว +1

    Not working for me don't know why

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว +1

      You can submit issue on this GitHub repo, you will get some solution for sure.

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      If you are opening same project both place then plug-in version should be same, I doubt you have different SDK path

    • @uniq-game-tounaments
      @uniq-game-tounaments 2 ปีที่แล้ว

      @@CodeXdev I will check that once

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

  • @etcworld3660
    @etcworld3660 2 ปีที่แล้ว

    subscribers done🇧🇩🇧🇩

  • @awwush
    @awwush 2 ปีที่แล้ว +1

    I watched the previous one and making??

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      You watched the previous one, thats fine.. what do you mean by making?

    • @awwush
      @awwush 2 ปีที่แล้ว

      @@CodeXdev yes it worked after removing errors of Null

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

  • @jasonbraithwaite9204
    @jasonbraithwaite9204 2 ปีที่แล้ว +1

    Excellent Tutorial Thanks for that 👏👏👏

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @altayebyousif8469
    @altayebyousif8469 2 ปีที่แล้ว +1

    what if i dont want to display data in a list what then?

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Then you have to decide 😆 where to display it!

  • @mdshahed5364
    @mdshahed5364 ปีที่แล้ว

    I follow your tutorial but it didn't work it showing a error that a null check operator uses on a null value

    • @CodeXdev
      @CodeXdev  ปีที่แล้ว

      Can you share the code line that gives this issue.

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

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

  • @Fauzyihsan
    @Fauzyihsan ปีที่แล้ว

    thanks you man

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

  • @shivamagrawal6991
    @shivamagrawal6991 2 ปีที่แล้ว

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

  • @tiagozontag8087
    @tiagozontag8087 5 หลายเดือนก่อน

    How to call the api on a background thread and then receive the result at the main thread?

    • @CodeXdev
      @CodeXdev  5 หลายเดือนก่อน +1

      Refer this video for backgrounding a task in Dart language : th-cam.com/video/WFfaaLwLobA/w-d-xo.html

  • @sadiaghani3237
    @sadiaghani3237 ปีที่แล้ว

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

  • @sounsavdan1033
    @sounsavdan1033 2 ปีที่แล้ว

    Can you make a torturial how to get data to textfield when we use mouse to click on data just like mouse click event in C# .NET

  • @Sportspocon
    @Sportspocon ปีที่แล้ว

    what about error state

  • @オタヴィオルイス
    @オタヴィオルイス ปีที่แล้ว

    I owe you my life *bows*

  • @masterofcampingMOC
    @masterofcampingMOC 2 ปีที่แล้ว

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

  • @szymonostrzoek2743
    @szymonostrzoek2743 2 ปีที่แล้ว

    Why isLoaded is var, no bool type?

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      var is more easy to write, it evaluates the data type based on right hand side.

  • @HobbitOfCamelot
    @HobbitOfCamelot ปีที่แล้ว

    jestes szefem ziomek, ale i tak nie oddalo pozniej

  • @abrorshamuradov1572
    @abrorshamuradov1572 2 ปีที่แล้ว

    you are the best

  • @MdSiam-kw5ox
    @MdSiam-kw5ox 2 ปีที่แล้ว

    Afzul, you looks horrible man. Are you sleeping?

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      My energy was low the day I recorded 😊 Yeah, i take good sleep 🛌

  • @limesenpaiscomics3287
    @limesenpaiscomics3287 ปีที่แล้ว

    works gj

  • @smartcoding__
    @smartcoding__ ปีที่แล้ว

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

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

  • @ribsk
    @ribsk 2 ปีที่แล้ว

    love you

  • @kms12317
    @kms12317 2 ปีที่แล้ว

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

  • @goguldev
    @goguldev 2 ปีที่แล้ว

    Sir, pls upload login and registeration screen api integration sir....

  • @joemdjossou
    @joemdjossou ปีที่แล้ว

    Really and extremely helpful nice job 👌🏾👍🏾

  • @buddhikap.desilva2897
    @buddhikap.desilva2897 2 ปีที่แล้ว

    Cool

  • @042_sayankabir7
    @042_sayankabir7 2 ปีที่แล้ว +1

    i want that tshirt

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว +1

      You can get that from 👉 streamlabs.com/codexdev/merch

  • @quyetlevan6574
    @quyetlevan6574 ปีที่แล้ว

    thanks you so much , great !!!!!

  • @gfxrds7
    @gfxrds7 2 ปีที่แล้ว

    please help me to integrate blogger v3 API

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      What problem you are facing? You can mention your logs or issue in discord

  • @realCristianoRonaldo
    @realCristianoRonaldo 3 หลายเดือนก่อน

    any work from home job opportunities.I'm a flutter developer.

  • @kuahhat0018
    @kuahhat0018 2 ปีที่แล้ว

    Why my running loding long time and null check

    • @kuahhat0018
      @kuahhat0018 2 ปีที่แล้ว

      I try code you code.. same issue