Display Data From a JSON in Flutter

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

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

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

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

  • @danunderhill
    @danunderhill 5 лет назад +32

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

  • @clavesi
    @clavesi 4 года назад +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.

  • @faizanhaider4186
    @faizanhaider4186 2 года назад +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 !

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

    I liked your pace of teaching!!

  • @cemmer1295
    @cemmer1295 3 года назад

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

  • @mrpakravian
    @mrpakravian 6 лет назад +2

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

  • @garygan8804
    @garygan8804 3 года назад

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

  • @thorvalld
    @thorvalld 5 лет назад +1

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

    • @ProgrammingAddict
      @ProgrammingAddict  5 лет назад

      Yes

    • @mohidden
      @mohidden 5 лет назад +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 4 года назад

      @@mohidden thanks man!

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

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

  • @chrisl4211
    @chrisl4211 3 года назад

    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.

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

    عالی

  • @GameCrawl
    @GameCrawl 3 года назад

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

  • @gj-box8
    @gj-box8 3 года назад +1

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

  • @campuranakun8349
    @campuranakun8349 3 года назад

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

  • @madi7640
    @madi7640 4 года назад

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

  • @lorencejohnviergarrido5064
    @lorencejohnviergarrido5064 5 лет назад

    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  5 лет назад

      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 5 лет назад

      @@ProgrammingAddict where can I find it ?

    • @CSSuccessGamer
      @CSSuccessGamer 4 года назад

      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 4 года назад

      Future builder widget might help solve this too.

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

    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

  • @TheBoldPathfinder
    @TheBoldPathfinder 5 лет назад

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

    • @durty12
      @durty12 5 лет назад +1

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

  • @ENYO200915
    @ENYO200915 4 года назад

    I liked so much. Congratulations.

  • @АлексйУваровъ
    @АлексйУваровъ 4 года назад +1

    Short and clear.

  • @7icod
    @7icod 4 года назад

    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

  • @albertogomes3005
    @albertogomes3005 4 года назад

    How to make an authentication request with the Basic Token?

  • @eng.ahmeddawod352
    @eng.ahmeddawod352 4 года назад

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

  • @chakrasudarsana5579
    @chakrasudarsana5579 4 года назад

    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",
    ]
    }

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

    Very nice

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

    thank you so much
    God bless you

  • @kasturimeh
    @kasturimeh 4 года назад

    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  4 года назад +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 4 года назад

      @@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 4 года назад

      @@ProgrammingAddict link not working.

    • @wickedgummybear3104
      @wickedgummybear3104 4 года назад

      @@amuchand47 Link not working indeed...

  • @safwatboulos6175
    @safwatboulos6175 4 года назад +1

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

  • @muhibnoor7603
    @muhibnoor7603 3 года назад

    Excellent

  • @djihadlifa5808
    @djihadlifa5808 4 года назад

    where is the json file to test the code !

  • @jayeshprajapati8203
    @jayeshprajapati8203 4 года назад

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

  • @michaelessiet5172
    @michaelessiet5172 4 года назад

    this video saved me. Thanks men

  • @Etgan_
    @Etgan_ 3 года назад

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

  • @ahmedakermi
    @ahmedakermi 6 лет назад +1

    how to search data from this list of json data

  • @vak-anton
    @vak-anton 4 года назад

    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 4 года назад

      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 3 года назад

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

  • @wickedgummybear3104
    @wickedgummybear3104 4 года назад

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

  • @PurushottamDike
    @PurushottamDike 4 года назад

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

  • @fatihcan7753
    @fatihcan7753 4 года назад

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

    • @ProgrammingAddict
      @ProgrammingAddict  4 года назад +1

      I'll make a video on this soon

    • @fatihcan7753
      @fatihcan7753 4 года назад

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

  • @daniyara8879
    @daniyara8879 4 года назад +1

    I like how fast you are. Awesome tutorial!

  • @adityapawar8048
    @adityapawar8048 3 года назад

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

  • @sheetalguptatheflutterdeve5926
    @sheetalguptatheflutterdeve5926 4 года назад

    Thank you so much it really helpful to me!!

  • @ananyagupta8020
    @ananyagupta8020 4 года назад

    Can you please provide the code for the same?

  • @samighasemi3333
    @samighasemi3333 3 года назад

    Awesome!

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

    Thank you so much

  • @pollathajeeva23
    @pollathajeeva23 4 года назад

    do you know abt web3dart

  • @mahmudurrahmanshovon185
    @mahmudurrahmanshovon185 5 лет назад

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

  • @yayaopang1478
    @yayaopang1478 4 года назад

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

    • @ProgrammingAddict
      @ProgrammingAddict  4 года назад

      Check out this package pub.dev/packages/printing

    • @yayaopang1478
      @yayaopang1478 4 года назад

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

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

    could you put the link of your code

  • @agrotis2231
    @agrotis2231 4 года назад

    nice tutorial

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

    perfect

  • @oldmen2544
    @oldmen2544 4 года назад

    This is not working with firestore data

  • @ayazveliyev5840
    @ayazveliyev5840 4 года назад

    Thank you. Helped.

  • @chrt2308
    @chrt2308 5 лет назад

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

  • @chakrasudarsana5579
    @chakrasudarsana5579 4 года назад

    Wonderful part!!!

  • @venkataramachandrarajudhan2870
    @venkataramachandrarajudhan2870 4 года назад

    can you comment the JSON URL

  • @naseerahsan9379
    @naseerahsan9379 3 года назад

    where is Json url

  • @CSSuccessGamer
    @CSSuccessGamer 4 года назад

    Thanks this works!

  • @chrisl4211
    @chrisl4211 3 года назад

    thank you anyway, thank you very much.

  • @feyroozcode
    @feyroozcode 5 лет назад

    HOW TO SEARCH IN JSON LISTVIEW : ruclips.net/video/EHt-QlGUoqY/видео.html

  • @electronicheartbreak.
    @electronicheartbreak. 5 лет назад +2

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

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

    Please share the source code on Github.

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

    MÁQUINA!!!!!!

  • @sleepwell169
    @sleepwell169 4 года назад

    thank you

  • @burakkizilay0
    @burakkizilay0 3 года назад

    can you share the codes ?

  • @safaaal-wajidi4606
    @safaaal-wajidi4606 4 года назад

    great! less talk on point.

  • @fozlerabbi2930
    @fozlerabbi2930 4 года назад

    It's a too fast approach to teach someone.

  • @БетелфилдКонтрострайкович

    Спасибо

  • @pranaypatil2479
    @pranaypatil2479 3 года назад

    helped

  • @whitetiger3987
    @whitetiger3987 4 года назад

    çok iyi!!!

  • @jegakulathilagapillai4507
    @jegakulathilagapillai4507 4 года назад

    Nice tutorial, yes too fast!!

  • @funprograms2661
    @funprograms2661 4 года назад

    skipped a lot and got me lost.

  • @llama7206
    @llama7206 4 года назад

    pretty bad