Flutter - How to make an Http Request, decode the Response in JSON and Show it in a ListView

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • In this Flutter tutorial we are going to see how to make an Http GET Request, decode the Response in JSON format and display the data we get in a ListView.builder.
    Thank you for offering me a good italian coffe: paypal.me/flut...
    Source file: github.com/ove...
    REQ | RES: reqres.in/
    Flutter is Google’s mobile app SDK for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source (flutter.io/)
    IntelliJ IDEA: www.jetbrains....
    Music:
    Happy by MBB / mbbofficial
    Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0
    creativecommons....
    Music promoted by Audio Library • Happy - MBB (No Copyri...

ความคิดเห็น • 100

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

    Amazing tutorial, now I finally can make some database operations in flutter.
    Honestly I had thought it would be harder in flutter than in 'native android', but with a simple and effective tutorial like this I noticed I was really wrong
    if every flutter tutorials were like this one, it would be easier to learn it, because most of tutorials explain a easy thing in a hard way
    thanks for this amazing tutorial

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

    Hey thanks, this is just what I need, I just started to use flutter and if I search somewhere else is just to complicated for beginners and dont even talk about what the code is doing. Thanks man for the great tutorial video.

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

      Thank you very much for your kind words dear 😊

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

    Very simple and easy to understand

  • @mallikarjunhanagandi4976
    @mallikarjunhanagandi4976 5 ปีที่แล้ว

    Excellent video. Within first attempt, I understood the JSON parsing concept in Flutter. Thanks for this video.

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

    It's amazing the way you teach it and the speed👍❤️

  • @yung-ihuang226
    @yung-ihuang226 2 ปีที่แล้ว

    the result is so amazing

  • @racontemoi4682
    @racontemoi4682 3 ปีที่แล้ว

    SAVE MY DAY.Thank you so much!I can stop crying alone in my room

  • @PrazereS11
    @PrazereS11 4 ปีที่แล้ว

    Thank you for you video. It made me understand how incredily Flutter is... i'm an Android Java and Swift iOS native developer, im thinking about learn and develop in flutter... this video

  • @anandkumarjha2522
    @anandkumarjha2522 4 ปีที่แล้ว

    Awesome bro.
    Now I completely understand how to use API in our app. Thanks man😊

  • @faiqwu9719
    @faiqwu9719 4 ปีที่แล้ว

    hey! even this tutorial have no voice instruction but this one is awesome! great job bro

  • @parthsanghani84
    @parthsanghani84 5 ปีที่แล้ว

    @flutterEnthusiast i saw a many tutorial but your video are perfext for learning

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

    "it's amazing, fast and so easy..." is true
    Congratulations!

  • @Mattt858
    @Mattt858 4 ปีที่แล้ว

    Thank you! Flutter docs where very confusing, you helped me a lot!

  • @flutterclone1849
    @flutterclone1849 3 ปีที่แล้ว

    best typing video :) You are a master, I hope you are successful in your work

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

    Thank You! The tutorial was amazing. You gained a sub :)

  • @prestigy
    @prestigy 5 ปีที่แล้ว

    I just saved $50,000 from this video.
    Thx A Lot....

  • @anandmano4375
    @anandmano4375 3 ปีที่แล้ว

    awesome....Thank you very much

  • @in.abhijeetbharti
    @in.abhijeetbharti 5 ปีที่แล้ว

    Thanks for the video

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

    You did great and we need for posting data on API

  • @portalcsc3963
    @portalcsc3963 4 ปีที่แล้ว

    Good Tutorial>>>> Excellent

  • @Ankit-rw7iu
    @Ankit-rw7iu 4 ปีที่แล้ว

    Really liked the tutorial.. Can you make a complete Flutter Tutorial playlist. I would love to see how that goes. :)

  • @zahabarshad3287
    @zahabarshad3287 3 ปีที่แล้ว

    Thanks alot you solved my problem❤️❤️

  • @abeautifulight
    @abeautifulight 4 ปีที่แล้ว

    Thank you, the tutorial was clean and understandable.

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

    Well presented! Thanks a lot :)

  • @hajianekena6909
    @hajianekena6909 3 ปีที่แล้ว

    Amazing, Thanks'

  • @shaznishiraz
    @shaznishiraz 4 ปีที่แล้ว

    Bro u r a legend

  • @dragon_warrior_
    @dragon_warrior_ 4 ปีที่แล้ว

    thank u dude ♥ quick and easy tutorial

  • @TheCodebookInc
    @TheCodebookInc 6 ปีที่แล้ว +5

    You are showing how to make get requests but what to do to make post requests with form fields. Even with authentication

  • @thelight3689
    @thelight3689 4 ปีที่แล้ว

    Wow it so easy!

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

    can we get some more vidoes on json
    especially getting data from service
    and showing in listview and grouping them by date with stucky headers

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

    Amazing

  • @MuhammadAli-ci7qp
    @MuhammadAli-ci7qp 3 ปีที่แล้ว

    u one son of a gun, thank you

  • @payelpaul8175
    @payelpaul8175 3 ปีที่แล้ว

    thanks yaar , thank you soo much

  • @aimanadzhar5275
    @aimanadzhar5275 4 ปีที่แล้ว

    Can you make login/register tutorial next? Very good tutorial mate!

  • @ashokmanjare5184
    @ashokmanjare5184 4 ปีที่แล้ว

    it's amazing,Thank you so much

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

    Why you didn't make a class for parse json data ?

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

    Great tutorial buddy..But can't you record your voice...its just good to watch and hear a tutorial rather than some music playing in the background

  • @Zentamusic
    @Zentamusic 4 ปีที่แล้ว

    yess beast tutorial

  • @davidhavel8162
    @davidhavel8162 5 ปีที่แล้ว

    If anyone is having problems with that make sure u add http package to your pubspec.yaml if you are using Dart 2.0 as they removed http from the dart core libraries.

  • @pepepriest5973
    @pepepriest5973 5 ปีที่แล้ว

    Thanks men, i was struggling with that

  • @indhumathi942
    @indhumathi942 4 ปีที่แล้ว

    thank u for understandable video. I have one doubt. How create the url for my project?

  • @WikkiOnIlluminati
    @WikkiOnIlluminati 5 ปีที่แล้ว

    HI,
    GREAT VIDEO TUTORIALS. I AM WATCHING AND LEARNING BY CODING SIDE BY SIDE.
    I HAVE A REQUEST FOR VIDEO TO MAKE FLUTTER LIST VIEW WITH REST JSON DATA WITH PAGINATION.
    KINDLY CAN YOU COVER HOW TO LOAD PAGINATED DATA INTO LIST VIEW IN FLUTTER IN YOUR NEXT VIDEO.
    THANKS

  •  4 ปีที่แล้ว

    Muito bom, gostei! Im from Brazil.

  • @shreyas2888
    @shreyas2888 4 ปีที่แล้ว

    Thanks so much!!

  • @baxiry.
    @baxiry. 4 ปีที่แล้ว

    BIG THANKS

  • @andrewvillegas122
    @andrewvillegas122 4 ปีที่แล้ว

    thank you siirrr!!!! 100% !!

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

    Hi, great tutorial you have made, I just want to ask a question about the API, if someday I want to change the API with the same link, will the flutter automatically update the list?

  • @ayushguarg4149
    @ayushguarg4149 4 ปีที่แล้ว

    Awesome video of flutter. Keep it up. thanks will wait for next video.
    Could you make video on firebase authentic with flutter.

  • @aquilamazzei
    @aquilamazzei 4 ปีที่แล้ว

    THXXXX

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

    If i want to send data to the api requesting data from the second page how do i do it!! !?

  • @mohamedzardheye1913
    @mohamedzardheye1913 4 ปีที่แล้ว

    THANKS YOU IT WORKS !!!!!!

  • @memosen80
    @memosen80 5 ปีที่แล้ว

    Thank you man!

  • @lambiengcode
    @lambiengcode 4 ปีที่แล้ว

    Thank you!! like and sub for you.

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

    hi sir, im a beginner and i have live running website and im try to convert it into a app and i have designed my own ui in flutter and how do i pull the login data from the website

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

    how did u do that add padding right click only sir???

    • @jaydenbatavia6318
      @jaydenbatavia6318 5 ปีที่แล้ว

      on intelliJ you press alt+enter on widget you want to padding

    • @freedom341
      @freedom341 5 ปีที่แล้ว

      @@jaydenbatavia6318 im using vscode. whats name of that package on intellij ?

    • @jaydenbatavia6318
      @jaydenbatavia6318 5 ปีที่แล้ว

      @@freedom341 u mean to wrap widget around widget right? CTRL + . in windows if so

  • @iceblue7147
    @iceblue7147 4 ปีที่แล้ว

    Amazing tutorial, Thank you. I have.question from video using networkImage to show image how about video?

  • @dryhail
    @dryhail 4 ปีที่แล้ว

    Great job! why did you stop doing apps! More flutter and mysql/php

  • @mithuns8410
    @mithuns8410 4 ปีที่แล้ว

    Can you create a Model class for the same json. and parse the data object accordingly, i am trying to do that byt no idea how to achieve that.

  • @manikantakottakotagaaru
    @manikantakottakotagaaru 5 ปีที่แล้ว

    Good work bro

  • @songil3679
    @songil3679 4 ปีที่แล้ว

    GOOD SAMPLE!!!

  • @allanmageto7123
    @allanmageto7123 5 ปีที่แล้ว

    YOU ARE THE MAAAAAN

  • @baxiry.
    @baxiry. 4 ปีที่แล้ว

    thank you

  • @nishtha7597
    @nishtha7597 4 ปีที่แล้ว

    Not getting any output at debugPrint(response.body);
    Why so??

  • @IRV205
    @IRV205 4 ปีที่แล้ว

    How do you select an item to show its details

  • @moatazal-ali7324
    @moatazal-ali7324 5 ปีที่แล้ว

    Thanks

  • @martinmugi2257
    @martinmugi2257 5 ปีที่แล้ว

    Hi nice tutorial...however the app reloads/ re-fetches data when i switch off internet and navigate to and from detail. i am from android and ionic background and what i have experienced is that they cache view when internet connection is lost.. how can this be achieved in flutter

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

    why you did'nt use children in body for listview?

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

      Because it's a ListView.builder widget which requires as parameters itemCount and itemBuilder. This type of widget, instead of the simplest ListView is more efficient...if you come from Android Dev World it is the equivalent of a List with a RecyclerView...

  • @PRAMODYADAV-mk7ow
    @PRAMODYADAV-mk7ow 5 ปีที่แล้ว

    Please make a video for search data from realtime firebase database (not firestore)

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

    hey! I saw this tutorial and found it very helpful. But When I'm running the code I'm getting this error: List' is not a subtype of type 'Map.
    Can you help me with this if possible.

    • @ShafqatNadeem
      @ShafqatNadeem 4 ปีที่แล้ว

      i got the same error , that is just because of the different pattern of JSON, means we both are trying to implement this method for the single user data , so did you got it working somehow ? tell me please if you ..

    • @ShafqatNadeem
      @ShafqatNadeem 4 ปีที่แล้ว

      i did it by saving the data["data"] into another Map variable and it worked..

  • @hidayatnoradzmanhisham9726
    @hidayatnoradzmanhisham9726 4 ปีที่แล้ว

    Hi there, what do you mean by "Sometimes the autocomplete mess everything..." ?

  • @arfeenmushtaq4273
    @arfeenmushtaq4273 4 ปีที่แล้ว

    great work, thanks for sharing. one question. How do you call padding like you did in the video?

  • @sanaullahshahbaz269
    @sanaullahshahbaz269 4 ปีที่แล้ว

    can you load list view from localhost Url ,,, or tell us about localhost can integrate the webApi in flutter or not

  • @develflutt8357
    @develflutt8357 4 ปีที่แล้ว

    how to use POST Request method and display result in listview

  • @polojoy6824
    @polojoy6824 4 ปีที่แล้ว

    thank q

  • @dharmang
    @dharmang 4 ปีที่แล้ว

    Wait wut Indian domain? how come i never knew this website 😂 Thnxxx!

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

    where is dart model

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

    Map data;
    List userData ;error occur

  • @techsuperfly4185
    @techsuperfly4185 4 ปีที่แล้ว

    hey men nice tutorial, but i have one question how can i create a website page with only JSON data for free?

    • @Gaijin101
      @Gaijin101 4 ปีที่แล้ว

      backendless.com or cloud.mongo.com + strapi.io or Firebase. Host web build on Netlify

  • @RajKumar-qq7tn
    @RajKumar-qq7tn 6 ปีที่แล้ว

    Do the same with woocommerce api

  • @karthickthanesh2163
    @karthickthanesh2163 5 ปีที่แล้ว

    I am facing this issue
    (52) I_flutter ( 3742) Another exception was thrown NoSuchMethodError The method '[]' was called on null.

    • @hirenvadher2610
      @hirenvadher2610 5 ปีที่แล้ว

      Your Json may start with [ and not with {.

  • @1himanshurawat
    @1himanshurawat 6 ปีที่แล้ว

    Please make some more video

  •  5 ปีที่แล้ว

    can you make one using API data? need it for a project and have no idea on how yo go into it haha

    • @vivecaotabil8245
      @vivecaotabil8245 5 ปีที่แล้ว

      is that not what this video is about?

    •  5 ปีที่แล้ว

      @@vivecaotabil8245 no

    • @vivecaotabil8245
      @vivecaotabil8245 5 ปีที่แล้ว

      @ its the same thing. Json API

    •  5 ปีที่แล้ว

      @@vivecaotabil8245 not by a long shot

  • @Chintanparmar
    @Chintanparmar 4 ปีที่แล้ว

    Dont forget to add " http: 0.12.0 " in pubspec.yaml

  • @bharatshankar5
    @bharatshankar5 4 ปีที่แล้ว

    any one there to teach fultter online