API Integration in flutter | Fetching data from API | Flutter Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • In this video, I have tried to explain to you how to integrate API in flutter app. I hope you will like it.
    Note: 50% of this channel earning is used for Animal welfare.
    Keep Learning,
    Praveen Prakash
    API Link:- reqres.in/
    Flutter- Firebase Series: - rb.gy/vvbn9r
    Flutter Animation Series:- rb.gy/rjnmpj
    Domino's clone app: • Dominos Clone App in F...
    Food Delivery app:- • Food Delivery App | Sp...
    Book Reading app:- • Flutter | Book Reading...
    Share, Support, Subscribe!!!
    TH-cam: / praveenprakash1986
    Facebook page: / techniepraveenprakash
    Instagram: / techiepraveen
    Facebook profile: / praveenthedesigner
    Twitter handle: / techiepraveen1

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

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

    So clear and straightforward 🥺

  • @shreyaschavan7976
    @shreyaschavan7976 6 หลายเดือนก่อน +3

    thanxx a lot very useful tutorial

  • @SuganyaMurugan-q4p
    @SuganyaMurugan-q4p 10 หลายเดือนก่อน +2

    Thank You so much

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

    Thank you so muchh.....

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

      Welcome, @Sreejith.. Keep learning and keep supporting me 🙂

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

      @@TechiePraveen Yes!! Sure
      Expecting more videos on Flutter ✨️

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

      @@sreejithcs9443 sure, i will upload more soon.

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

      @@TechiePraveen ❤️

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

    why Future apicall() async is called ? Can someone plz tell me ?

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

      Hi, whenever we are waiting for some data, then we used async, and future is used to map json values...those values will get in future

  • @yadavsarita-qg2gs
    @yadavsarita-qg2gs 5 หลายเดือนก่อน +2

    thanks a lot it's really meaningful tutorial.

  • @christianmichael7270
    @christianmichael7270 9 หลายเดือนก่อน +2

    Thank you for this video, it helped simplify API call

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

    Very nice explanation thankyou so much 🙏🏼🙏🏼🙏🏼

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

      I am glad that you like my video, Somesh 🙂

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

    Thanks A Lot Buddy. Ur Video Help Me A Lot. Keep It Up And God Bless U.

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

      Thanks for commenting @Prabin.. Keep watching and keep learning.

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

    thank you first time i try API successfully

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

      Thank you for commenting. Keep learning and keep supporting me. 🙂

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

    so clear information

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

    Superb

  • @AbhishekSharma-kp3ph
    @AbhishekSharma-kp3ph 2 ปีที่แล้ว +3

    Nice and complete API tutorial

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

      Thank for commenting @Techno Trending. Keep watching and keep supporting me. 🙂

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

    got to learn a lot of things infact it was a grt video!! but in the end I am getting a error " Unhandled Exception: type '_InternalLinkedHashMap' is not a subtype of type 'List'"

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

      Hi Aman, sorry for late reply. Need to see the code for error. Please ping me on twitter for one to one interaction and thanks for commenting, i’ll try my best to help you out 🙂

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

      @@TechiePraveen I have too that error. can you explain or correct code

  • @SowbaranikaG
    @SowbaranikaG 2 หลายเดือนก่อน +1

    Thanks a lot , by following ur teaching I made my own UI , with video and description!! Thankyou so so so much ! Great work!

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

    thanks. learn lot of thinks

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

    It was best explained thanks 😊

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

    Hii sir
    String stringResponse;
    Map dataResponse;
    Map mapResponse;
    List listResponse;
    Show tha error
    All Response line show error
    How to find

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

      put it like this as i wrote
      String? stringResponse;
      Map? mapResponse;
      put ? mark after the data type

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

    Thanks bro
    nice vedio
    keep doing vedios 👌👌👌

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

      Thanks a lot @Areena. Keep learning and keep supporting me. 🙂

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

    Thanks alot..I want to know that how can I get individual item details after pressing on single item from list

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

      Hi Shivendra, I think you want product details page, so for this you can create a separate class and pass the value of the api in that class by using index. Let me know in case you need any help from me. 🙂

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

      @@TechiePraveen yeah I used index and I am getting all the list items but I only want to get a single item details of an selected item.Thanks..

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

      @@shivendratiwari8069 so, in that case, you can give the condition for that specific items.

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

    Thanks Praveen

  • @satyamdubey7721
    @satyamdubey7721 10 หลายเดือนก่อน +1

    Thank bro 😊😊😊😊😊

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

      Welcome bro 🙂

  • @vasantkalal-x4j
    @vasantkalal-x4j ปีที่แล้ว

    mapResponse["data"].toString(), (_TypeError (Null check operator used on a null value)) showing me this error can any one tell me what to do?
    after putting datatype Map?mapResponse....

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

    Thanks a lot, its very helful video and to the point . great one

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

    Thanks a lot for this.

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

    Flutterflow par video banaiye

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

      Bahut jald flutter ke series start hone wali hai so stay tuned 🙂

  • @haisamkhurshid1294
    @haisamkhurshid1294 8 หลายเดือนก่อน

    Please give your detail to contact you.I am building a flutter app where dynamic data and list charts is getting involved and i am getting confused in that.Please help

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

    Can you share the code and list the packages which you have used in this, please?

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

    this is superb IMO... lets give a try !

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

      Thank you 🙂. Keep watching and keep supporting me.

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

    Wow this is amazing . Thanks a lot

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

      Thank you collins for your beautiful comment. Keep
      learning and keep supporting me 🙂

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

    helped a lot thank u sir

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

    Thank you

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

    Very nice tutorial

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

    How do i display container with an image if listresponse. Length == null? 0 : listresponse. Length

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

    This was lovely. Please can you lecture on post method for registering a user and logining in the registered user

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

      Hi Hafis, thank you for commenting. Sure, i will create the API integration in detail with POST method using e-commerce scenarios. Stay tuned. 🙂

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

      @@TechiePraveen really looking forward to that. Thanks in advance

  • @نورعادل-م1ث
    @نورعادل-م1ث ปีที่แล้ว

    thanks can i use this method in travell app please answer me ????and what i write to get api from travell app can u help me

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

    How to get Home List User click push Detail User ???

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

    How to listen to data change in http (api request)

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

      Hi @chachu, please elaborate your question. You want to handle when API response gets changes ?

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

    well explain to fetch data from api,s

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

      Thank you @Shashikant, stay tuned as new videos are going to upload soon..🙂

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

    okka mukka ardam kavadam le

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

    Thank you ❤️

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

    now please add on click method in listview

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

      Hi Jay, soon i am going to upload an e-commerce app videos from scratch where i am going to cover all these topics

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

    fully clearly understandable,simply super

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

      Thank you 😊 @ak

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

      Do lecture on database bro

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

    is wrap stream builder to list view
    for imidently data change

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

    This great video, in fact, I gained a lot from it. Please, I am having this error:
    lib/main.dart:67:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null.
    - 'Map' is from 'dart:core'.
    : Text(mapResponse['data'].toString()),
    ^

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

      Hi Olainiyan, i think you have not handled the null conditioned, so for the either write the code for null condition or downgrade the null safety..🙂

    • @areenasjayan9280
      @areenasjayan9280 3 ปีที่แล้ว +5

      Use like this
      Map mapResponse ={ };
      List listResponse = [ ];

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

      HI i am a beginner learning Flutter and getting the same null error in this statement, child:mapResponse ==null? Text("Data is laoding"):Text(mapResponse['data"].toString()),
      Can you provide exact /more details how to resolve it. Thks

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

    Where is modal class??

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

      Hi Yusuf,as this is just an example of api integration. So, i haven't created a model class. However, you can create a model class and also use state management for the better handling of apis. Let me know in case you need any help in this.

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

    easy to understand

  • @vi.p8376
    @vi.p8376 2 ปีที่แล้ว

    bro pojo class whre is code?

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

    well explained praveen

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

    how to map that api value into the doughnut chart

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

    Sir pls explain the post api for login

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

    thank you man

  • @vi.p8376
    @vi.p8376 2 ปีที่แล้ว

    for me not wrking i want git source code

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

    I am getting output in html format

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

    Great

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

    thank you brother

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

      Most welcome. Keep learning and keep supporting me. 🙂

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

    thanks a lot sir

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

    Nice informative video 👍✨

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

      Thank you 🙂. Keep watching and keep learning.

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

    thank you alot sir

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

    thank you!

  • @AnkitaSingh-kq4yo
    @AnkitaSingh-kq4yo 2 ปีที่แล้ว

    Sir Arraylist se Arraylist kasie nikalege

  • @NazrulIslam-iz6sw
    @NazrulIslam-iz6sw 2 ปีที่แล้ว

    how to do a pagination here?

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

    showing error stringResponse not initilized

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

      This is happening because We're Initializing the stringResponse in the apiCall() method's if condition but if the success code != 200 then there's no else condition to initialize the string. Therefore, this error will come.
      solution: String stringResponse = " " ; //initialize empty String

    • @kabilanrajkumar-xb1to
      @kabilanrajkumar-xb1to 5 วันที่ผ่านมา

      @@vchib1 then also I got

    • @kabilanrajkumar-xb1to
      @kabilanrajkumar-xb1to 5 วันที่ผ่านมา

      @@vchib1 I couldn't able to access the element in the text field

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

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

      With the help of api...u can do this..

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

    Thanks alot praveen for explaining this so clearly. This was pain for me as I'm mostly get comfort with Angular and JS Frameworks 👏

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

      I am glad that you like this video. Keep learning and keep.supporting me. 🙂

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

    Easy and clean explanation ever, 100% worked tutorial . Thanks a lot man.

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

      Thank you @Sanjeev, Keep learning and keep supporting me. 🙂

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

    really good explanations. pls post like this relevant videos comparing two three api together