Part - 11 | Building List with Complex Very JSON Data || Flutter Get API Call with null safety

Поделиться
HTML-код
  • Опубликовано: 18 окт 2024
  • In this video i will teach you how we can parse complex JSON data to model and then build the list.
    ► API Link:➜ webhook.site/d...
    ► Source code ➜ github.com/axi...
    ► Jsonviewer: ➜ jsonviewer.stac...
    Join Facebook Group: / 983554978866765
    _____________/Connect On Social Media\____________
    ► linkedin:➜ / axiftaj
    ► Instagram:➜ / axif_taj
    ► Facebook:➜ / aaxiftaj
    ► Twitter:➜ / axiftaj
    ► GitHub:➜ github.com/axi...
    ► Hire me on Fiver:➜ www.fiverr.com...
    =========================================
    Blog App Playlist: • Flutter Blog App with ...
    Flutter Tutorials Playlist: • Creating Flutter proje...
    How to capture image from camera in flutter:
    Link : • How to capture Image f...
    My Card App Flutter :
    User Circular Avatar Part 1 : • My Card App || Flutter...
    Use fonts in flutter Part 2 : • My Card App || Flutter...
    Final Part 3 : • My Card App || Flutter...
    Hire me on Fiverr : www.fiverr.com...
    Covid-19 Tracker App using Rest API's : • Create Coronavirus (CO...
    Firebase Blog App Android Java: • Firebase Blog App - Ho...
    C++ Tutorials : • C++ Programming Tutori... .
    rest apis,flutter get api call with null safety, building list with JSON data, future builder, flutter rest api tutorials crash course,
    For business queries : axiftaj@gmail.com
    Thank you for watching my channel do give feedback about this video.
    #flutter #fluttertutorial #form #components #flutter #asiftajtech

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

  • @thetechbrotherss
    @thetechbrotherss  Год назад +16

    Please Use this response and create your own api like i do to follow the tutorial along side with me. Create your own api and and use it.
    json Response:
    {
    "success" : true,
    "message" : "All data" ,
    "data" : [
    {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "on_sale" : true,
    "sale_percent" : 20,
    "sold" : 20,
    "slider_new" : false,
    "slider_recent" : false,
    "slider_sold" : false,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "title" :"TMTS121-50199" ,
    "categories" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "type" : "Women" ,
    "sale_percent" : 20,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "name" : "clothes" ,
    "image" : "https: //images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    "subcat" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "type" : "Women" ,
    "sale_percent" : 20,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "name" :"Shirts"
    },
    "shop" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "is_active" : false,
    "created_At" : "2023-01-05T07: 56: 19.219Z" ,
    "name" :"Shirts" ,
    "description" : "This is enderobe brand" ,
    "shopemail" : "adenreobe@gmail.com" ,
    "shopaddress" : "Islamabad F8" ,
    "shopcity" : "Islamabad" ,
    "userid" : "23asdfasfdsfd" ,
    "image" : "images.pexels.com/photos/5531004/pexels-photo-5531004.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    "price" : "2500" ,
    "sale_title" : "Winter Sale" ,
    "sale_price" : "2300" ,
    "description" : "22% off all the sales " ,
    "color" : "#FF6347,#CD5C5C" ,
    "size" : "S,M,L,XL,XXL" ,
    "in_wishlist" : true,
    "images" : [
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/19090/pexels-photo.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
    },
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/336372/pexels-photo-336372.jpeg?auto=compress&cs=tinysrgb&w=1200"
    }
    ]
    },
    {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "on_sale" : true,
    "sale_percent" : 20,
    "sold" : 20,
    "slider_new" : false,
    "slider_recent" : false,
    "slider_sold" : false,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "title" :"TMTS121-50199" ,
    "categories" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "type" : "Women" ,
    "sale_percent" : 20,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "name" : "clothes" ,
    "image" : "https: //images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    "subcat" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "type" : "Women" ,
    "sale_percent" : 20,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "name" :"Shirts"
    },
    "shop" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "is_active" : false,
    "created_At" : "2023-01-05T07: 56: 19.219Z" ,
    "name" :"Shirts" ,
    "description" : "This is enderobe brand" ,
    "shopemail" : "adenreobe@gmail.com" ,
    "shopaddress" : "Islamabad F8" ,
    "shopcity" : "Islamabad" ,
    "userid" : "23asdfasfdsfd" ,
    "image" : "images.pexels.com/photos/5531004/pexels-photo-5531004.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    "price" : "2500" ,
    "sale_title" : "Winter Sale" ,
    "sale_price" : "2300" ,
    "description" : "22% off all the sales " ,
    "color" : "#FF6347,#CD5C5C" ,
    "size" : "S,M,L,XL,XXL" ,
    "in_wishlist" : true,
    "images" : [
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/19090/pexels-photo.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
    },
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/336372/pexels-photo-336372.jpeg?auto=compress&cs=tinysrgb&w=1200"
    }
    ]
    },
    {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "on_sale" : true,
    "sale_percent" : 20,
    "sold" : 20,
    "slider_new" : false,
    "slider_recent" : false,
    "slider_sold" : false,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "title" :"TMTS121-50199" ,
    "categories" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "type" : "Women" ,
    "sale_percent" : 20,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "name" : "clothes" ,
    "image" : "https: //images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    "subcat" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "type" : "Women" ,
    "sale_percent" : 20,
    "date" : "2023-01-05T07: 56: 19.219Z" ,
    "name" :"Shirts"
    },
    "shop" : {
    "_id" : "asdf231asdfadsfsad2438rjsd" ,
    "is_active" : false,
    "created_At" : "2023-01-05T07: 56: 19.219Z" ,
    "name" :"Shirts" ,
    "description" : "This is enderobe brand" ,
    "shopemail" : "adenreobe@gmail.com" ,
    "shopaddress" : "Islamabad F8" ,
    "shopcity" : "Islamabad" ,
    "userid" : "23asdfasfdsfd" ,
    "image" : "images.pexels.com/photos/5531004/pexels-photo-5531004.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    "price" : "2500" ,
    "sale_title" : "Winter Sale" ,
    "sale_price" : "2300" ,
    "description" : "22% off all the sales " ,
    "color" : "#FF6347,#CD5C5C" ,
    "size" : "S,M,L,XL,XXL" ,
    "in_wishlist" : true,
    "images" : [
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/19090/pexels-photo.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
    },
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
    },
    {
    "id" : "2342asdfasdf34",
    "url" : "images.pexels.com/photos/336372/pexels-photo-336372.jpeg?auto=compress&cs=tinysrgb&w=1200"
    }
    ]
    }
    ]
    }

  • @apsian7637
    @apsian7637 Год назад +18

    My past 5 days were full of productivity, just because of your getx playlist and api playlist. You are worth it man

  • @abdulkaderhridoy5344
    @abdulkaderhridoy5344 2 года назад +11

    You saved my job brother.. very helpful playlist for me. i was totally null about api. but after completing your series - now its just like drinking water. Thank you. May Allah Bless you

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +2

      Glad i helped, do share with your friends and subscribe.

  • @vivekjunghamal5730
    @vivekjunghamal5730 2 года назад +12

    This is a "one of a kind" tutorial series. Your teaching style matches with me about 90 percent. CHEERS!! to you Asif . and my sincerest and Utmost gratitude to you.🤩

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +3

      Thank you so much sir, do subscribe and share with your friends so maximum student can take benefit from my knowledge.

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

      @@thetechbrotherss done already! Eager to learn more from you

  • @politicaldrama00
    @politicaldrama00 Год назад +5

    Your tutorial make me able to pass my first Interview in peshawar IT part .thank You Mr Asif Taj 🙏🙏🙏🙏🙏

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

      Best of luck, do subscribe and share with your friends

  • @ghayoorhussain8930
    @ghayoorhussain8930 Год назад +1

    Alhamdulillah, I was able to code the logic of this video on my own, thanks to your excellent teaching style. Your guidance helped me to grasp the concepts and apply them effectively.
    Jazak-ALLAH

    • @thetechbrotherss
      @thetechbrotherss  Год назад +2

      Glad to hear this, share with your friends

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

      can you please share the code and model you used i have tried many times but it is not working

  • @AmirKhan-dc5te
    @AmirKhan-dc5te Год назад +2

    Thank you so very much.. I'm really thankful to you for the efforts that you put into teaching us, you're the best of all teachers. May Allah reward you in this world and in hereafter ❤️

  • @Saansh6462
    @Saansh6462 2 года назад +1

    JazakAllah ... great video tutorial that how to handle complex json data and building list with very very and very easy way .... for newer in flutter must following his video ....

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

      You are most welcome, do share with your friend so many students can take benefits from this video.

  • @codeandtraveling796
    @codeandtraveling796 2 года назад +1

    Thanks for this tutorial Is se Mari boht help hui he mene flutter to seekha but api Samaj nhi arahi thi aj muje sab kuch Samaj agaya thanks alot sir g

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

      Great it helped, do watch full playlist it will clear all your concepts. Do share and subscribe.

    • @codeandtraveling796
      @codeandtraveling796 2 года назад +1

      @@thetechbrotherss mene sab videos ko start se dekha he islye to Samaj ai he warna upar se hi jati

    • @codeandtraveling796
      @codeandtraveling796 2 года назад +1

      @@thetechbrotherss but thanks

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

      hhahaha this used to happens with me in the start of my journey.

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

      @@thetechbrotherss So that doesn't mean it's just me

  • @vivekprasad2703
    @vivekprasad2703 2 года назад +2

    That's very high level knowledge you are providing

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

    Thank You Sir. You are fantastic. may Allah bliss you with what you have wished for.❤

  • @MuhammadUzair-zs8vz
    @MuhammadUzair-zs8vz 6 месяцев назад

    very helpful content boss, ma to apk fan hogyaa jis way ma ap seeekha tha ab tk mana youtube pr asa teacher nahi dkha flutter ka. and api link is not working please check and update

    • @thetechbrotherss
      @thetechbrotherss  5 месяцев назад

      Thanks do share with your friends

    • @javacore-qk9kd
      @javacore-qk9kd 5 месяцев назад

      @@thetechbrotherss sure , please update api link not working

  • @sumitkumar-jn8he
    @sumitkumar-jn8he 2 года назад +1

    Thanks for the tutorial sir aur kaun sa app next banane ko soach rahe hai sir .... Sir koi state management bhi us application ko integrate kar ke sikhaiye. App ka marji sir koi bhi.

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      Hm slowly slowly sub mil kr sekhain gy. After this playlist we will learn provider state management.

  • @naimatiqbal
    @naimatiqbal 6 месяцев назад

    Very helpful Playlist for beginners ✌️☺️

  • @takirajani2693
    @takirajani2693 2 года назад +1

    Best video found in youtube.thx

  • @tayyabashfaq
    @tayyabashfaq 4 месяца назад +1

    Hello sir in your video when you build a future builder widget and use if else condition for snapshot and then return listview builder and after that you will return column and etc . the point is you dont return value to future builder and you face no error but in my project this null safty error occurs and when i return value in end then they dont show me data. what is the solution? BTW every thing clear.

  • @Sd70770
    @Sd70770 2 года назад +1

    iS CODE ka product model bana ha ya POSTMAN ma add krna ha?
    yeh sari JPEG ha lakin jab apny PRODUCT MODEL banaya ha toh woh webp ha.. CODING KI LAST LINES and LAST WORDS

  • @aarijamir5550
    @aarijamir5550 2 года назад +2

    for visual studio code? kon si extension aur kese model class banti json se?
    Wahan per property define ker ke then model banti direct json paste krne se model nhi banta

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

      for vs code used this javiercbk.github.io/json_to_dart/

  • @qasimjasim7056
    @qasimjasim7056 2 года назад +2

    Thanks alot of confusion clear

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

      You are most welcome, keep sharing keep watching.

  • @christianmichael7270
    @christianmichael7270 10 месяцев назад

    What a beautiful tutorial i wish it was done in English, please next time to get a wider reach please use English, perhaps you have English version please point me to it. Thank you

  • @syedshabbarraza6384
    @syedshabbarraza6384 2 месяца назад

    16:32
    Asif bhai aap ny taqreeban 2 videos me 2 different methods use kiye hai Future builder ky 1 baar list mein data store krwaya or 1 baar directly lakin difference bilqul discuss hi ni kiya

  • @pranjalmehrotra8411
    @pranjalmehrotra8411 Год назад +2

    Hi, thanks for your video. But my doubt is the API URL is not working for me. Can u please help me out with this.

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

      Always read fists comments and descriptions

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

      I have created one following his api, if you need you can use it.

  • @ironmans234
    @ironmans234 6 месяцев назад +1

    sir one time you check it not work i do everything like check api response it come, but image[id, url] there promblem , sir please one time check that sir , i am waiting your reply sir

    • @thetechbrotherss
      @thetechbrotherss  6 месяцев назад +1

      replace images with your own images url, also check first comment

  • @rafhanchaudhary9140
    @rafhanchaudhary9140 2 года назад +2

    Very informative playlist. keep it up man (Y)

  • @himank3517
    @himank3517 2 года назад +1

    thanks bro your tutorial really help a loT please upload more content 😇

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      Thank you for appreciating. I will, do subscribe and share with your friends.

  • @mekacandle5546
    @mekacandle5546 2 года назад +3

    Hello,
    Why am I getting such an error in the application screen? (type list dynamic is not a subtype of type map string dynamic), Thank you.

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +3

      Try to build model again else change var data to var data Map data = json.decode(response.body.toString()
      )

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

      because of null safety,use type casting

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

    sir, this video is very helpful.
    sir muje ek doubt hai me ye method use kar k api to get kar liya lekin ab muje isme pagination karna hai to without array me data ko kese pagination me add karu?? for ex. page 1 me 3 data hai or list khtam hota hai to me api call karwata hun page no 2 ki so again 3 data aye..but me page 1 k 3 data ko page 2 k 3 data se merge kana chata hun to without array how its possible?

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

      Packages available ha

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

      @@thetechbrotherss yes package hai magar usme bhi array me add karna pad rha hai

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

      @@thetechbrotherss koi video hai sir pagination ki? Duse video available hai magar wo sab alag alag method hai or har method me array ka use kiya hai magar is video k mutabiq array use nahi kiya hai

  • @priyanshubajpai7945
    @priyanshubajpai7945 8 месяцев назад

    Best Playlist Ever

  • @zozocaptain709
    @zozocaptain709 2 года назад +2

    Nice tutorial bro, thanks 🙏

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      Welcome 👍 Please do share with your friends.

  • @AnupUpadhayaya
    @AnupUpadhayaya 2 года назад +1

    i thing the model you used in video and you provided are different . i am having issue while fetching images as they are under the product array how to fetch those please help

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

      Images i used in model are taken from shutter stock you can replace them with your while create the model, just replace image url and create the api again.

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

    Assalamualaikum Asif Bhai,
    Mene Just Try Kiya Ye Video Wala Same Concept but Jo API Link Aapne Mention Kiye Ho Wo Expired bata rha he Google pr,,, index ka data try kiya but nahi show hua jese aapne bataye same wese.
    Plz Answer for help me.

  • @byiringirooscar321
    @byiringirooscar321 Год назад +1

    Sir the problem here we have json that return 1 data so when I am trying like to find images it is impossible because they are under products please I am lost

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

      It’s not impossible, i have done it as you can see in the video you must be doing something wrong

  • @darshitjani8273
    @darshitjani8273 2 года назад +1

    I have Unsplash api its same, i am trying to convert json to dart online its having so much of issue, also i use VS code there is no such plugin .
    is there any other way the api is so long

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

      you can use online website to make model and read first comment and then follow the video and do it the way i did it

  • @editinginpashto4440
    @editinginpashto4440 2 года назад +1

    Thank you sir. Maine apna fake API bana liya.

  • @codinginflutter1234
    @codinginflutter1234 2 года назад +1

    But sir apnay jo api hamay provide ki hy us me image address invalid hy wo image nhi website ka link hy Baki sir Explaination sy concept clear ho gaey hain
    Thank you

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

    Github code bhi share kardia karo bro samjhna mein asaani hoti hy btw great tutorial keep it up ❤❤

  • @gurasissingh178
    @gurasissingh178 2 года назад +1

    Asif bhai apki JSON Schema jo video me hai aur jo comment me hai wo dono alag hai.

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

      wo comment wala use kr lain same ha

    • @gurasissingh178
      @gurasissingh178 2 года назад +1

      @@thetechbrotherss Comment wala hi use kar raha hu bhaijaan. Mobile me Loading hi dikha raha hai. Images ke sath baki content show nahi ho raha.. Json Schema hi alag hai. Ab tak ka pura course badhiya hai. lekin gaadi yahi pe atak gayi hai..

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

      @@gurasissingh178 us ma aik object nhi bas

  • @abdurrehman6203
    @abdurrehman6203 2 года назад +2

    Great Sir...

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

      Thank you

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

      @@thetechbrotherss I have got error: null check operator used in null value

  • @iamyasirameer
    @iamyasirameer 2 года назад +1

    Thank you so much Sir 💖

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

      Thank you do share with your friends.

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

      I have got error: null check operator used in null vallue. is your everything correct

  • @TopuRoy-f7t
    @TopuRoy-f7t 8 месяцев назад

    apka vedio bohot achi hai

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

    Sir, Array nd nestedcArray k liye konse approach ko follow karengy?

  • @ukashaanwar9451
    @ukashaanwar9451 2 года назад +2

    Facing error while fetching image.
    image: NetworkImage(Snapshot!.data!.data[index]. image![position].url),
    Error the getter url isn't defined for the class string

  • @akashshah5514
    @akashshah5514 Год назад +1

    very very thank you sir

  • @somnathdas8922
    @somnathdas8922 2 года назад +1

    Sir this json file not same which you showing in video. lot of issue coming when writing code. and I can understand the code properly. would you please provide me the json file which is you showing in the screen please

  • @hussainuk3674
    @hussainuk3674 Год назад +1

    Bhai , your this API link is not working, so, what is alternative way to get this link and practice , i am trying to make fake APIS but I'm failed to make that,,,
    please brother give me some idea about that

    • @thetechbrotherss
      @thetechbrotherss  Год назад +1

      Always read first comment and descriptions. Then follow the process

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

      @@thetechbrotherss thank you brother, I find out my problem and now I am able to make this fake API link ,
      Specially you are a great teacher , from you I'm learning lot of things,❤❤ Regularly I watch your all informative video
      Please make any E-commerce base application, I hope its will be really helpful for us

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

      @@hussainuk3674 apko kaha pe issue araha tha nd kese solve hua can you please describe briefly? q k mere pas bhi Api fetch nahi ho rahi

  • @sanketsakpal2357
    @sanketsakpal2357 2 года назад +2

    great video keep it up

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

    ya jo @Tech Brothers nay first link diya ha es say json to dart plugin say jo ProductsModel file ban rahi ha wo theak nahi ban rahi 4 files ban jati han

  • @SamamaAli-kq9mr
    @SamamaAli-kq9mr 2 месяца назад

    do you still use this method to fetch data from api? i.e. using future builder and snapshot etc?

    • @thetechbrotherss
      @thetechbrotherss  2 месяца назад

      Nop, this is for basic understanding of concepts. i use state management. Check my mvvm courses for bloc, getx and provider

  • @manojpalitech
    @manojpalitech 2 года назад +1

    nice tutorials. please make videos for getx api

  • @maazafridi2090
    @maazafridi2090 2 года назад +1

    where is api link .... ?? ye on nai ho rahii jo description mein hai...(error 404)

  • @muhammadhassan3016
    @muhammadhassan3016 2 года назад +1

    Sir! when I click on api link of this video then show me the 404 Error|Not Found page, how to get it

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

      Bro check first comment and the follow the process.

  • @manishadharmik5240
    @manishadharmik5240 Год назад +1

    thanks for json response data

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

      glad you like it, do subscribe and share with your friends

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

    Hi,
    Can you please explain how we can display the same images in the example as a dropdown? How do we access the index in that case

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

      Just pass array to dropdown rest of the process is same

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

      @@thetechbrotherss thankyou..got it!

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

    yeh API ka link kidhar hei ya JSONPLACE HOLDER mein kidhar ja ker convert ker sakty ?

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

      read first comment and follow the process

    • @Muhammadrazib-nh8dr
      @Muhammadrazib-nh8dr 3 месяца назад

      Razib sir aapse puchna tha ki rest API part number 11 ki video hai sar ji sar aapane provide kiya tha URL description mein Nahin hai Uske bare mein thoda sa batana hai

  • @JSCSShrustiYaligar
    @JSCSShrustiYaligar Год назад +1

    I'm getting error in generated model by plugin itself , 'Undefined name Dynamic'

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

      You can used online website to create videos.

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

      @@thetechbrotherss Thank you for reply , No my doubt is , I have created the posts model using JSON to DART plugin in Android studio. I'm getting error in posts_model.dart file as 'Undefined name Dynamic' . What should I do?

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

      I think this may be the problem with updated version of the plugin. Can you please check that and help me what to do

  • @mdasrafulattarealam1684
    @mdasrafulattarealam1684 2 года назад +1

    sir if i get access data to other example_six.dart how can I do?

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      dont forget to leave a star.
      github.com/axiftaj/Flutter-Rest-Api-Tutorials-With-Example

  • @hammadabid8251
    @hammadabid8251 2 года назад +1

    sir amazing but I have a task where I logged in with user model data then I have made a profile page of only that user who is logged in so what is the code for it. tried your trick but it gives all the users model data I only need logged in user data.

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      create your separate model and save values into shared preference. Then display them.

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

      @@thetechbrotherss thanks sir for your reply please make video on this as I don't know much about the shared preferences.

  • @wasih19
    @wasih19 2 года назад +1

    sir webHook ke bagher koi alternative?

  • @anjalihali3232
    @anjalihali3232 2 года назад +1

    will you please make video on complex Post Api where json is like:
    {
    "DemoService1Result": [
    {
    "Response": "Logged in successfully...",
    "STATUS": "Success"
    }
    ]
    }

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

      This is the complex api i have teach in the tutorials, if you got understanding of this then everything will be on your finger tips.

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

      Yes ,I see all the videos and I got my mistake and now I solved the issue.thank you😅

  • @wasih19
    @wasih19 2 года назад +1

    bhai mujy yeh Json to Dart puglin bata Vscode ke lein waha bohot masla horaha hy?

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      bro vs code to muje ni pata ap yeah website use kro model bnany k liye
      javiercbk.github.io/json_to_dart/

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      subscribe zaroor kr dain r share bhi kr dain

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

      @@thetechbrotherss jazakAAllah

  • @sufianamin6657
    @sufianamin6657 Год назад +1

    I created a fake api but my code is not fetching data from it, there's no error in the code i even copied your whole code from github and changed the link and everything but it's still not working

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

      Please debug it and check for status code response

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

      Bro if you got any solution then please tell me too . I'm also facing same problem

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

      @@dailydoseofact nope couldn't find any solution.

  • @ayushmishra8505
    @ayushmishra8505 Год назад +1

    18:30 -> Bro sometimes you show data in else statement and Loading text in if. This time you show data in if(snapshot.hasData) part and Loading text in else part its confusing

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

      It depends upon the api response.

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

      @@thetechbrotherss Explain this in next Comment Thanks in advance
      what is the difference in both return

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

    bhai ap k code k mutabik mai sirf product list ko access kr skta ho or product mai images Arrey ko target nhi krr paraha
    plzz help mee

    • @thetechbrotherss
      @thetechbrotherss  Год назад +1

      Bro follow the process and check the api response in postman then give it shot, lot of students did it

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

      ​@@thetechbrotherss Thanks for reply brother bhai maslay bohot a rahay hai agr ap video mai jo Api dekae hai agr vo share kr dy to bhai tention tora kam ho jay ga
      plzz bhai dua lagi ge meri

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

    Can this api data can be shown as notification in background????

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

      Yes about upto some kb data, you have to play with it

  • @atifullah7567
    @atifullah7567 2 года назад +1

    sir vidoes 11 mai api ka link nahy open horaha
    Not Found ata hai

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

      Please read first comment and watch video from start.

  • @sachinnahar6921
    @sachinnahar6921 7 месяцев назад

    bhut complicated h ye api ko understand krna ,but way of teaching is better

    • @thetechbrotherss
      @thetechbrotherss  7 месяцев назад

      Ap is playlist ko start st follow kro apko sub kuch easy lagy ga

    • @sachinnahar6921
      @sachinnahar6921 7 месяцев назад

      @@thetechbrotherss i follow this playlist from starting but jese jese aage bad rha hu playlist m vese vese complicated ho rha h mere liye

  • @hashimjahangir9427
    @hashimjahangir9427 2 года назад +1

    Hey brother, the api link you have provided aint working.
    Thank you

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

      Bro please read first comment and then watch video along side me

  • @bhavinpathak4408
    @bhavinpathak4408 2 года назад +1

    Sir i Did't Understand Model Class Generacted From Plugin Please Make Video How To Create Model Class Without Plugins ! For This Kinds Of Api's

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

    it does not decode image but absolutely briliant explaning brother love and respect

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

      Add your own images, i have added card code images in response

  • @hafiztouseef6184
    @hafiztouseef6184 2 года назад +1

    ALLLAH Bless you

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

    Asif Taj Sir I have an Issue in APi Last main App ko run karta hon tu woh sirf loading kr raha hai baqiii data nahi araha hai....

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

      Read the first comment and follow the process

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

      @@thetechbrotherss Asif taj bhai ossi ko heee follow kia hai phir b nahi ho raha hai phir apka code use kia

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      to prh r practice kro

  • @mazharnadeem8358
    @mazharnadeem8358 2 года назад +1

    When I am fetching Images through Api. Then I gives me exception of *Invalid Image data*

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

      This is may due to images are not available as i have taken those images from google you can change the link in response dynamically and the create api. You can pass any link of the image from google and paste in response in images array. This will solved the issue. If this didn't still don't worry as you learned the process.

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

    hello sir sir ap na gu api ka link dia hai ma aus ku open kar raha hu but error a raha hai 404 not found ais ka kia solution hai sir?

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

    The code is all fine & not showing single error but when i tried to simply print the index value the api isn't hitting. I dunno why I'm facing this problem

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

      hit api in postman, also check first comment

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

      @@thetechbrotherss it's hitting in postman and in vs code it isn't showing any error but the problem is that the api isn't hitting in vs code while writing code & doesn't showing any data from the model on screen . It's just returning Loading text .

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

    sir, there is an issue in future function calling in main file. main file not accessable that function

  • @khubaibirfan9215
    @khubaibirfan9215 2 года назад +1

    Sir Apne if or else ke condition same lgae hain matlab agar status code. 200 ni hunga tb be "data"pass hu gae ?ye change hunga na?

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

      Yar yeah developer par depened krta ha wo kaise backend banta ha ap ny phr us k status code par condition lagani hoti ha.

  • @umangpatel6380
    @umangpatel6380 10 месяцев назад +3

    this Api in 404 error

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

    It run in postman but json to dart plugin say ProductsModel ki file bannay k bajay 4 files automatically ban jati han even I tried every thing from scratch

  • @Sd70770
    @Sd70770 2 года назад +1

    SIR
    AP APNA FIRST COMMENT DEKHY APNY JO CODE SHARE KIYA HA WOH JPEG EXTENSION K SATH HA OR JO VIDEO MA USE KIYA HA WOH WEBP KI EXTENSION HA ... JAB APKI VIDEO FOLLOW KR RHY HAIN TOH ERROR ARHY HAIN...
    PLLZZ IS KO RENEW KR DYN.. IS VIDEO PY STUCK HOVY MUJY 6DAYS HO GAE HAIN... ABHII AGY B ITNI SARI VIDEOS HAIN... PLLZZZZZ

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

      bro this is working please read it carefully and follow the process as told in video.

  • @viralcartoon567
    @viralcartoon567 2 года назад +3

    API Link is giving 404 error and cannot able to find first comment, Btw, you are doing an fantastic job.

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

      Please create your api from this website as i am using free version and it only support 500 free request. I have told you the procedure of how you can create fake APIS.
      Website : webhook.site
      JSON Response:
      {
      "success": true,
      "message": "All Shops Data",
      "data": [
      {
      "_id": "6196377900622d794418644b",
      "is_active": false,
      "created_at": "2021-11-18T09:03:04.356Z",
      "name": "ONE",
      "description": "Clothing store in Islamabad",
      "shopemail": "ONE@gmail.com",
      "shopaddress": "islamabad",
      "shopcity": "Islamabad",
      "userid": "6196377800622d7944186447",
      "image": "www.shutterstock.com/image-photo/head-shot-portrait-close-smiling-confident-1714666150",
      "__v": 0,
      "products": [
      {
      "_id": "61963b4300622d794418687e",
      "on_sale": true,
      "sale_percent": 0,
      "sold": 10,
      "slider_new": false,
      "slider_recent": false,
      "slider_sold": false,
      "date": "2021-11-18T09:03:04.358Z",
      "title": "Denim Shirt Grey",
      "categories": "612c8b2b674ad2107eb2d244",
      "subcate": "616e81dba17386218e27a2b5",
      "shop": "6196377900622d794418644b",
      "price": "3,490 ",
      "sale_title": "3,490 ",
      "sale_price": "2,443",
      "description": "men shirt",
      "colors": "Red",
      "size": "S,M,X,XL",
      "images": [
      {
      "_id": "61963b4300622d794418687f",
      "filename": "images[0]-1637235522052-730096647.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "61963c2e00622d7944187316",
      "filename": "images[0]-1637235757437-927339951.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "61963c2e00622d7944187317",
      "filename": "images[1]-1637235758276-122593199.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      }
      ],
      "__v": 1,
      "in_wishlist": false
      },
      {
      "_id": "6197493700622d794418cdec",
      "on_sale": true,
      "sale_percent": 10,
      "sold": 8,
      "slider_new": false,
      "slider_recent": false,
      "slider_sold": false,
      "date": "2021-11-18T09:03:04.358Z",
      "title": "Printed Hoodie Grey",
      "categories": "616e8081a17386218e27a206",
      "subcate": "616e84b2a17386218e27a420",
      "shop": "6196377900622d794418644b",
      "price": "3,590 ",
      "sale_title": "3,590 ",
      "sale_price": "2,513",
      "description": "ssss",
      "colors": "#CD5C5C",
      "size": "S,M,L,XL,XXL",
      "images": [
      {
      "_id": "6197493700622d794418cded",
      "filename": "images[0]-1637304627221-448731879.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "6197493700622d794418cdee",
      "filename": "images[1]-1637304628418-102234457.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "6197493700622d794418cdef",
      "filename": "images[2]-1637304629564-380376274.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      }
      ],
      "__v": 0,
      "in_wishlist": false
      }
      ]
      }]}

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

      O

    • @Decode.f
      @Decode.f 2 месяца назад

      @@thetechbrotherss sir the site give this error 429 Request limit exceeded. Sign up to unlock more requests. is there any other web site to create our free or fake Apis? please sir help me it works first but after 4 to 5 hours it give this error

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

    Thanks Dear

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

    Brilliant sir

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

    thanks a lot. but image is not showing. This kind of error is showing (Invalid image data).

  • @darknight7275
    @darknight7275 2 года назад +1

    Getting from here
    itemCount: snapshot.data.data.lenght
    Getting error while I type data second time?

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

      add null check like i did or you can check the source code.

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

    Thanks a lot!

  • @ABHISINGH-ty7ln
    @ABHISINGH-ty7ln 9 месяцев назад

    Bro my if condition is not working only else condition is working that text loading is print

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

    Brother, complex JSON file don't get.

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

    Sir the API link in not working.? what should i do now???🤔🤔🤔

  • @enterpropro4604
    @enterpropro4604 2 года назад +1

    Thank you)

  • @basitali8309
    @basitali8309 2 года назад +1

    the link you provided doesn't not contain any data. shows 404

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

      Please check the first comment and description then follow the rest of process.

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

    images sirf 3 objects mee hee thi kya what about rest 7 objects??

    • @thetechbrotherss
      @thetechbrotherss  2 года назад +1

      Yeah 1 generic example the api ko fully understand krny k liye, ab image 100k objects ma bhi process same rahy ga fetch krny k liye.

  • @muhammadharis5389
    @muhammadharis5389 2 года назад +1

    sir share the json data the Link dont give response errro 404 Not found

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

      Please see first comment i have provided you the response so pleas make your own fake API. Follow tutorial like i did.

  • @jayaresparcia6402
    @jayaresparcia6402 2 года назад +1

    please use the English language when explaining for a wide range of audiences. Thanks

  • @ahmadyasir-yk1ws
    @ahmadyasir-yk1ws Год назад

    A.o.A Sir Rest Api video number 11 ka link ni mil raha

  • @MuhammadFaisal-q1i
    @MuhammadFaisal-q1i Год назад

    Hello Sir I can't access the data list in item count what to do?

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

      Bhai check api in postman and also read first comment

  • @zoshypermar
    @zoshypermar 2 года назад +1

    Sir ap NY Jo comment main api ka code kia hai is ka structure or ap ka structure same nai banta kia issues hain😑😑😑😑😑😑

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

      Same banta ha ab sahi sy follow kro

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

      @@thetechbrotherss
      Sir Mera else part chata hai loading wala if part nai chalta Jahan ap first time app run karty or integer print karty... If part nai chalta jab k same code likha huwa😑

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

      @@zoshypermar same issue

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

    Sir XMLHttpRequest error show horha hy code theek hy bilkul maine kafi baar recheck karlia.

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

      checki api response in postman, also read first comment and follow the video

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

      @@thetechbrotherss Sir response araha hy aur 1 comment se code copy karke hi fake api create ki hy.

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

    sir thanks ,,but the api link is not working it show this---> Too many requests, please create a new URL/token

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

      Please create your own fake api, see first comment.

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

      Please check first comment. JSON Response
      {
      "success": true,
      "message": "All Shops Data",
      "data": [
      {
      "_id": "6196377900622d794418644b",
      "is_active": false,
      "created_at": "2021-11-18T09:03:04.356Z",
      "name": "ONE",
      "description": "Clothing store in Islamabad",
      "shopemail": "ONE@gmail.com",
      "shopaddress": "islamabad",
      "shopcity": "Islamabad",
      "userid": "6196377800622d7944186447",
      "image": "www.shutterstock.com/image-photo/head-shot-portrait-close-smiling-confident-1714666150",
      "__v": 0,
      "products": [
      {
      "_id": "61963b4300622d794418687e",
      "on_sale": true,
      "sale_percent": 0,
      "sold": 10,
      "slider_new": false,
      "slider_recent": false,
      "slider_sold": false,
      "date": "2021-11-18T09:03:04.358Z",
      "title": "Denim Shirt Grey",
      "categories": "612c8b2b674ad2107eb2d244",
      "subcate": "616e81dba17386218e27a2b5",
      "shop": "6196377900622d794418644b",
      "price": "3,490 ",
      "sale_title": "3,490 ",
      "sale_price": "2,443",
      "description": "men shirt",
      "colors": "Red",
      "size": "S,M,X,XL",
      "images": [
      {
      "_id": "61963b4300622d794418687f",
      "filename": "images[0]-1637235522052-730096647.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "61963c2e00622d7944187316",
      "filename": "images[0]-1637235757437-927339951.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "61963c2e00622d7944187317",
      "filename": "images[1]-1637235758276-122593199.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      }
      ],
      "__v": 1,
      "in_wishlist": false
      },
      {
      "_id": "6197493700622d794418cdec",
      "on_sale": true,
      "sale_percent": 10,
      "sold": 8,
      "slider_new": false,
      "slider_recent": false,
      "slider_sold": false,
      "date": "2021-11-18T09:03:04.358Z",
      "title": "Printed Hoodie Grey",
      "categories": "616e8081a17386218e27a206",
      "subcate": "616e84b2a17386218e27a420",
      "shop": "6196377900622d794418644b",
      "price": "3,590 ",
      "sale_title": "3,590 ",
      "sale_price": "2,513",
      "description": "ssss",
      "colors": "#CD5C5C",
      "size": "S,M,L,XL,XXL",
      "images": [
      {
      "_id": "6197493700622d794418cded",
      "filename": "images[0]-1637304627221-448731879.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "6197493700622d794418cdee",
      "filename": "images[1]-1637304628418-102234457.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      },
      {
      "_id": "6197493700622d794418cdef",
      "filename": "images[2]-1637304629564-380376274.jpeg",
      "url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
      }
      ],
      "__v": 0,
      "in_wishlist": false
      }
      ]
      },],}

  • @keshavparihar1925
    @keshavparihar1925 2 года назад +1

    I am not able to get the length of the data it is showing an error can somebody help me out in it

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

      Please watch it carefully you are doing something wrong, check even apis is hitting or not

  • @rafaydeswali6197
    @rafaydeswali6197 7 месяцев назад

    sir webhook error dara hai subscription mang rha hai isko kaise solve karain please guide kar dain