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
Very clean and clear explanation thanks a lot
You are most welcome
than k you dbestech....this video was helpful
you are surely the best
You are most welcome
It helped me a lot, thank sir
Glad to hear that
Nice. It was interesting for my, thnks
Glad you enjoyed it
Thanks. May we get the link to this particular repository?
thanks sir.. any tutorial crud auth with getx + dio?
I will try. Thank you
Nice explanation i have ever seen, sir can you make a video on chat app with laravel and flutter....
Will try
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?
if you enable debugging you should be able to see which line causes this error.
Thank you very much
You are welcome
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
hello! How did you decide that problem? I got that error too
@@redjohn4626 im solve with different funtion in flutter
Aslamalikm The method is it the same for django rest api
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?
Yes, you can
nice one.
Thanks for the visit
Can I use your api link ? To test my code
I will also appreciate if you really share tutorial link on facebook or twitter.
Great!
You have any tutorial for image upload throw in laravel api in with flutter
Next week i will make one. Working on it now.
hi can i get link for this thanks
Hi, I hope u will be fine. I am getting an error at pickimage what to do with it?
Hi there, I am not sure what error you have having.
please make an authentication tutorial using flutter bloc with laravel rest api
Ok. No worries. I will
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
Hi rutanana, do you have data coming from server?
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
I am getting the same error...
so is the api you build called RESTapi?
yes
i want to post just accestoken. what to do?
Token is posted with the headers.
Can i get the source code please?
ClientException with SocketException: Failed host lookup:
Need more detail info
Please how can I get to contact you and get to ask some questions
It's twiter. @dbestech
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
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
@@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
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
I am getting the same error...