Display Data From a JSON in Flutter

Sdílet
Vložit
  • čas přidán 31. 01. 2019
  • ►SUBSCRIBE TO THE CHANNEL◄
    ►FOR ANY QUESTIONS CONTACT ME AT◄
    programmingaddictyt@gmail.com

Komentáře • 105

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

    Thank you so much! I've gone through like a few dozen tutorials over this and this was the only one that I could get working.

  • @eboatwright_
    @eboatwright_ Před rokem +3

    This video is old, but this helped me so I'll comment anyway. Very straight to the point and helpful! Thanks

  • @cemmer1295
    @cemmer1295 Před 2 lety

    Fast and understandable, dont know others but I really liked it.

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

    I liked your pace of teaching!!

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

    Thank you so much! Appreciate your hard work. Just an advice though - try adding the source code or a link to the source code in the video description. It is really helpful to see all the code in one place after having gone through the video once. Keep up the good work !

  • @danunderhill
    @danunderhill Před 4 lety +31

    Interesting tutorial, but presented way too fast with your edits. Could be explained much better if you slowed down a little bit.

  • @mahmudurrahmanshovon185

    Thanks so much... This one helped me a lottt!!

  • @box8eight
    @box8eight Před 3 lety +1

    Super tutorial, not really too fast but much better you had given a link to download the code example

  • @michaelessiet5172
    @michaelessiet5172 Před 3 lety

    this video saved me. Thanks men

  • @sheetalguptatheflutterdeve5926

    Thank you so much it really helpful to me!!

  • @chakrasudarsana5579
    @chakrasudarsana5579 Před 4 lety

    Wonderful part!!!

  • @daniyara8879
    @daniyara8879 Před 4 lety +1

    I like how fast you are. Awesome tutorial!

  • @ENYO200915
    @ENYO200915 Před 4 lety

    I liked so much. Congratulations.

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

    Nice explanation
    Can you make some more
    Adressing reading from complex json
    And writing back
    Just a full fledge one
    Thanks

  • @samighasemi3333
    @samighasemi3333 Před 2 lety

    Awesome!

  • @CSSuccessGamer
    @CSSuccessGamer Před 4 lety

    Thanks this works!

  • @user-sq5xv6dr1v
    @user-sq5xv6dr1v Před 3 lety +1

    Short and clear.

  • @adityapawar8048
    @adityapawar8048 Před 2 lety

    thanks alot for tutorial ❤️
    i request to make tutorial on api response fetch in expandable list in flutter

  • @agrotis2231
    @agrotis2231 Před 3 lety

    nice tutorial

  • @chrisl4211
    @chrisl4211 Před 3 lety

    how about i have a forum, and it have a list of 50K items? can it load like 30 and load another 30 if they scroll down?
    can you teach how to connect to an vanilla forum? i found from the internet, nothing.

  • @muhibnoor7603
    @muhibnoor7603 Před 2 lety

    Excellent

  • @7icod
    @7icod Před 4 lety

    Hello man can you help me!!
    I'm trying to get two different data then put it in two listview in the same page in flutter

  • @chipekowasa6571
    @chipekowasa6571 Před 2 lety

    Very nice

  • @Raufle1
    @Raufle1 Před 2 lety

    I also listen to ' The Way I am ' by Eminem

  • @jayeshprajapati8203
    @jayeshprajapati8203 Před 3 lety

    Hello. The video is very helpful. I have ome request. Can you make a video with 'dio' package.

  • @nourberakdar3809
    @nourberakdar3809 Před 2 lety

    thank you so much
    God bless you

  • @chaitanyapawar5483
    @chaitanyapawar5483 Před rokem

    Thank you so much

  • @opadaibra1597
    @opadaibra1597 Před 2 lety

    thank you very much, I really liked it. but i have one question is what i have to do if i want to update list of note, i meant how to clear list directly and get data again after delete

  • @ayazveliyev5840
    @ayazveliyev5840 Před 3 lety

    Thank you. Helped.

  • @garygan8804
    @garygan8804 Před 2 lety

    i have a quesiton. how do you get the link for json cause I can't create one

  • @chakrasudarsana5579
    @chakrasudarsana5579 Před 4 lety

    Can you say? From a Json in flutter how to display an object part and array of integer part only?
    For example,
    {
    "anObject": {
    "1" :"Item1",
    "2" :'Item2"
    },
    "arrayOfObjects": [
    {
    "item": 1
    },
    {
    "item": 2
    },
    {
    "item": 3
    }
    ],
    "arrayOfIntegers": [
    "1",
    "2",
    "3",
    "4",
    "5",
    ]
    }

  • @GameCrawl
    @GameCrawl Před 3 lety

    what is the full url that you got the json data?

  • @PurushottamDike
    @PurushottamDike Před 3 lety

    thank you very much. can you tell me how to add load more button after 10 entries

  • @sofiaconstanzadonoso4689

    MÁQUINA!!!!!!

  • @albertogomes3005
    @albertogomes3005 Před 4 lety

    How to make an authentication request with the Basic Token?

  • @abdelghanimoumen2524
    @abdelghanimoumen2524 Před rokem

    perfect

  • @soleimanrostami
    @soleimanrostami Před 6 měsíci

    عالی

  • @madi7640
    @madi7640 Před 3 lety

    Hello, class 'List' is deprecated, can you answer what can i use instead

  • @wickedgummybear3104
    @wickedgummybear3104 Před 3 lety

    Would like to see the json file too, if thats not too much trouble

  • @safwatboulos6175
    @safwatboulos6175 Před 4 lety +1

    Jesus man, how do you expect anyone to follow you if you are flying at 500MPH???

  • @eng.ahmeddawod352
    @eng.ahmeddawod352 Před 4 lety

    in widget build i can'd using setState !! Why

  • @thorvalld
    @thorvalld Před 5 lety +1

    does this work if the JSON file is stored locally in an assets folder ?

    • @ProgrammingAddict
      @ProgrammingAddict  Před 4 lety

      Yes

    • @mohidden
      @mohidden Před 4 lety +3

      Future loadNoteAsset() async {
      return await rootBundle.loadString('assets/data.json');
      }
      Future parsePost() async {
      var posts = List();
      String source = await loadNoteAsset();
      final parsed = jsonDecode(source);
      for (var item in parsed) {
      posts.add(Post.fromJson(item));
      }
      return posts;
      }

    • @wickedgummybear3104
      @wickedgummybear3104 Před 3 lety

      @@mohidden thanks man!

  • @sleepwell169
    @sleepwell169 Před 4 lety

    thank you

  • @whitetiger3987
    @whitetiger3987 Před 3 lety

    çok iyi!!!

  • @chrisl4211
    @chrisl4211 Před 3 lety

    thank you anyway, thank you very much.

  • @chrt2308
    @chrt2308 Před 5 lety

    Can you please make a tutorial on XML data as well as a response

  • @kasturimeh
    @kasturimeh Před 4 lety

    Hey, I have a doubt. where do you upload these json files? Where did you fetch it from? And can we retrieve images from that json file too?

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

      For this video I just uploaded a random json i found to github, link below, but in the real world you'd most likely hit some kind of a rest api.
      You typically don't get a raw image in a json. Typically you get an image url and then display the image from that url.
      raw.githubusercontent.com/boriszv/json/master/random_example.json

    • @kasturimeh
      @kasturimeh Před 4 lety

      @@ProgrammingAddict I may sound stupid to ask this question, but how do I create this rest api? Some links you might want to suggest ?

    • @amuchand47
      @amuchand47 Před 3 lety

      @@ProgrammingAddict link not working.

    • @wickedgummybear3104
      @wickedgummybear3104 Před 3 lety

      @@amuchand47 Link not working indeed...

  • @campuranakun8349
    @campuranakun8349 Před 3 lety

    i'am try to call only 1 data from this tutorial, and give 1 error from debug, its say "RangeError (index): Invalid value: Valid value range " ,than the data show up succesfully. whats would i do if i want to catch only 1 data sir? thanks...

  • @lorencejohnviergarrido5064

    Hi, I just followed what ever on your video tutorial but it seems it doesn't work on me at all, it showing me an error saying
    'package:flutter/src/widgets/text.dart': Failed assertion: line 285 pos 10: 'data != null':
    A non-null String must be provided to a text widget
    Hope you could help me with this thanks

    • @ProgrammingAddict
      @ProgrammingAddict  Před 4 lety

      You are passing a null value to your Text widget and that's why you're getting that error, make sure that you initialize the variable you are passing in

    • @lorencejohnviergarrido5064
      @lorencejohnviergarrido5064 Před 4 lety

      @@ProgrammingAddict where can I find it ?

    • @CSSuccessGamer
      @CSSuccessGamer Před 4 lety

      i think it has something to do with the async task loading. You have to wait for it to load the data first. Maybe use a bool to show loading screen when there is no data loaded yet.

    • @CSSuccessGamer
      @CSSuccessGamer Před 4 lety

      Future builder widget might help solve this too.

  • @ssirana
    @ssirana Před 4 lety

    How to add button to get next element of json, ie. One element at a time, next on ontap function.

    • @durty12
      @durty12 Před 4 lety +1

      You'd probably have better luck posting this question on StackOverflow

  • @vak-anton
    @vak-anton Před 3 lety

    Thank you so much and share a nice tutorials!! But I have some question, there are some error
    ```Dart Unhandled Exception: type '_InternalLinkedHashMap' is not a subtype of type 'Iterable', stack trace: #0 _MyUserState.fetchUserTest```.
    Is there any solution I can solve this??
    Thank you so much that you take a look my comments

    • @vak-anton
      @vak-anton Před 3 lety

      Now I solved this issue
      To solve this issue make sure you should not use 'Key' value in `Express.js`.
      -> like `return res.json({'key': rows});
      convert to
      --> `return res.send(rows);

    • @hanoufal-f2576
      @hanoufal-f2576 Před 3 lety

      I am having the same error, can you please explain more?

  • @Etgan_
    @Etgan_ Před 3 lety

    انت عملت string في map لماذا ما مفروض تكون dynamic

  • @ananyagupta8020
    @ananyagupta8020 Před 3 lety

    Can you please provide the code for the same?

  • @pranaypatil2479
    @pranaypatil2479 Před 2 lety

    helped

  • @safaaal-wajidi4606
    @safaaal-wajidi4606 Před 3 lety

    great! less talk on point.

  • @djihadlifa5808
    @djihadlifa5808 Před 3 lety

    where is the json file to test the code !

  • @user-hz6mk7nb4i
    @user-hz6mk7nb4i Před 3 lety

    Спасибо

  • @ahmedakermi
    @ahmedakermi Před 5 lety +1

    how to search data from this list of json data

  • @jegakulathilagapillai4507

    Nice tutorial, yes too fast!!

  • @pollathajeeva23
    @pollathajeeva23 Před 3 lety

    do you know abt web3dart

  • @yayaopang1478
    @yayaopang1478 Před 3 lety

    do you have a tutorial how to make that response json into a pdf file sir?

    • @ProgrammingAddict
      @ProgrammingAddict  Před 3 lety

      Check out this package pub.dev/packages/printing

    • @yayaopang1478
      @yayaopang1478 Před 3 lety

      @@ProgrammingAddict
      thank you sir, I've seen the advantages of this plugin and I think it's really cool, but I'm still confused about what if I want to view the results of the json then it can be downloaded

  • @fatihcan7753
    @fatihcan7753 Před 4 lety

    How can i fetch JSON data if it's nested ?

    • @ProgrammingAddict
      @ProgrammingAddict  Před 4 lety +1

      I'll make a video on this soon

    • @fatihcan7753
      @fatihcan7753 Před 4 lety

      @@ProgrammingAddict It would be helpful for my next project but i need to finish what i work in 3 days so can you give me hint ? Would it be easier to fetch it by making it object ?

  • @nishanthmolleti188
    @nishanthmolleti188 Před 2 lety

    could you put the link of your code

  • @indianpsycho8878
    @indianpsycho8878 Před 2 lety

    Please share the source code on Github.

  • @venkataramachandrarajudhan2870

    can you comment the JSON URL

  • @burakkizilay0
    @burakkizilay0 Před 3 lety

    can you share the codes ?

  • @oldmen2544
    @oldmen2544 Před 4 lety

    This is not working with firestore data

  • @naseerahsan9379
    @naseerahsan9379 Před 3 lety

    where is Json url

  • @fozlerabbi2930
    @fozlerabbi2930 Před 3 lety

    It's a too fast approach to teach someone.

  • @electronicheartbreak.
    @electronicheartbreak. Před 4 lety +2

    by copy-pasting you made your video a billion time more worse. nice.

  • @funprograms2661
    @funprograms2661 Před 3 lety

    skipped a lot and got me lost.

  • @llama7206
    @llama7206 Před 3 lety

    pretty bad

  • @feyroozcode
    @feyroozcode Před 4 lety

    HOW TO SEARCH IN JSON LISTVIEW : czcams.com/video/EHt-QlGUoqY/video.html