Flutter Post Request Example | Make Flutter Rest Api With Laravel PHP | Flutter API Call Sign Up

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • In this tutorial you will learn how to make flutter post request using flutter rest api with laravel and PHP. Flutter API Call with Http Request is for posting flutter data to server with laravel backend with PHP. Http post flutter takes some parameters from the flutter app and send the post data to the server. This page also works has sign up or login page.
    Starter code github link
    github.com/das...
    For flutter ios development if you need to buy apple computer check out the link below
    amzn.to/3nrE6Ii
    Learn how to build laravel backend for api request
    • Install Laravel Admin ...
    Learn flutter app with backend
    • Flutter Backend | Flu...
    Deploy flutter app to server
    • Deploy Flutter Web to ...
    Follow me on twitter
    / dbestech
    Follow me on facebook
    / dbestech

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

  • @quickflutterfixes4782
    @quickflutterfixes4782 3 года назад +4

    Very clean and clear explanation thanks a lot

    • @dbestech
      @dbestech  3 года назад +1

      You are most welcome

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

    than k you dbestech....this video was helpful
    you are surely the best

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

      You are most welcome

  • @HaiVu-ur8my
    @HaiVu-ur8my 2 года назад

    It helped me a lot, thank sir

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

      Glad to hear that

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

    Nice. It was interesting for my, thnks

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

      Glad you enjoyed it

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

    Thanks. May we get the link to this particular repository?

  • @fariszain6233
    @fariszain6233 3 года назад +1

    thanks sir.. any tutorial crud auth with getx + dio?

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

      I will try. Thank you

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

    Nice explanation i have ever seen, sir can you make a video on chat app with laravel and flutter....

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

    Hello, my laravel API is returning a response only on the first time. when I try again it takes long to respond or returns 500 server error
    When I try with postman everything is ok.Any suggestions?

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

      if you enable debugging you should be able to see which line causes this error.

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

    Thank you very much

  • @maxxy-r3q
    @maxxy-r3q 2 года назад

    Hello sir, i got error like this :
    NoSuchMethodError (NoSuchMethodError: Class 'Future' has no instance getter 'body'.
    Receiver: Instance of 'Future'
    Tried calling: body)
    I checked it first in Postman, and it worked when the post method and get method, even though I have followed this video to the end

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

      hello! How did you decide that problem? I got that error too

    • @maxxy-r3q
      @maxxy-r3q Год назад

      @@redjohn4626 im solve with different funtion in flutter

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

    Aslamalikm The method is it the same for django rest api

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

    Hi sir, may i know will the same method will be used for pressing a button instead of input and posting the existing data in app?

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

    nice one.

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

      Thanks for the visit

  • @sounsavdan1033
    @sounsavdan1033 3 года назад +1

    Can I use your api link ? To test my code

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

      I will also appreciate if you really share tutorial link on facebook or twitter.

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

    Great!

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

    You have any tutorial for image upload throw in laravel api in with flutter

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

      Next week i will make one. Working on it now.

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

      hi can i get link for this thanks

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

    Hi, I hope u will be fine. I am getting an error at pickimage what to do with it?

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

      Hi there, I am not sure what error you have having.

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

    please make an authentication tutorial using flutter bloc with laravel rest api

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

      Ok. No worries. I will

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

    i tried out this logic but i am getting this error :
    Class 'Future' has no instance getter 'body'.
    Receiver: Instance of 'Future'
    Tried calling: body
    this body is the response.body that is coming from the server in laravel
    i need help now

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

      Hi rutanana, do you have data coming from server?

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

      Yes.
      My API is working perfectly in laravel
      So after saving the information, a success response message is what I am picking from the backend and then decode it

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

      I am getting the same error...

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

    so is the api you build called RESTapi?

    • @UpEthio
      @UpEthio 11 месяцев назад

      yes

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

    i want to post just accestoken. what to do?

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

      Token is posted with the headers.

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

    Can i get the source code please?

  • @TRAFALGARD.WATERLAW-k9p
    @TRAFALGARD.WATERLAW-k9p Год назад

    ClientException with SocketException: Failed host lookup:

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

      Need more detail info

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

    Please how can I get to contact you and get to ask some questions

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

      It's twiter. @dbestech

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

    i tried out this logic but i am getting this error :
    Class 'Future' has no instance getter 'body'.
    Receiver: Instance of 'Future'
    Tried calling: body
    this body is the response.body that is coming from the server in laravel
    i need help now

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

      Hi Himaja, did you try the api using postman tool to check out? Please first make sure that, the api is working correctly on your end using postman

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

      @@dbestech Yes sir, the data is coming via postman but facing the error 'body' method not found Receiver: Instance of '_Future' Arguments:[]
      please help sir

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

      I guess the problem is within api.dart file where PostData(data, endpointurl)async}{}
      here, before postdata function we should all Future Postdata since it is async and await but if we do so
      in register.dart, var body=json.decode(res.body); the error is shown in the res.body saying getter 'body' isn't defined for type Future
      help me out please

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

      I am getting the same error...