Get Request Flutter | Http Flutter Tutorial | Http Request JSON | Laravel API Call With PHP

preview_player
Показать описание
Here, You will learn about flutter http get request from laravel backend PHP. Calling flutter get api returns JSON response. We will build get request api call and then process the json response from the server in flutter api with PHP and Laravel.

We used Laravel to send the response to the app from the server. To process the flutter http response with get request, in flutter we need to build a model. First we decode the response and save in a variable and then we build the model.

We have used a custom parser to decode json and use them in our application. We have used fromJson constructor build the data from the model to use and display in the widget.

For flutter ios development if you need to buy apple computer check out the link below

Starter code github link

Check out flutter backend tutorial
Check out flutter post request tutorial
Рекомендации по теме
Комментарии
Автор

Great tutorial and easy to understand. Thank you for taking the time to make this!

VitalHipHop
Автор

God bless you sir! You are doing a very great job helping us to learn!

fredmhiche
Автор

Truly truly incredible stuff! - Massive thanks.. I have a question, if your endpoint always returns new tokens (as part of the header e.g clientID, expiry, UID, tokenID etc) when you authenticate or make calls to any api(s).. and the tokens are needed for subsequents calls to the server. what is the best way of storing the tokens(after each call) & retrieving those tokens? Is it get_storage?

Thanks again! Happy to talk if you have any time..

temitopejunior
Автор

Xino te quiero mucho un buen tuto <3( lo de xino lo digo con cariño)
Grate tuto its bery usefull

mohambs
Автор

this channel has some of the best tutorials ....for flutter

Anythiny
Автор

I cant load images from https get request ?

thushankalana
Автор

Thanks sir, can i ask you a question? What is your theme name? I see the hierarchy, that so easy to focus the code.
Again, thanks for your video.

ducbuifromVietnam
Автор

quick question how would i structure the endpoint in the laravel api just to retrieve user specific data. for instance if I have user A and user B how would i get it so that only User A can see his/her info

justinvanwyk
Автор

The instance member 'photos ' can't be accessed in an intializer. How solved this problem help me

mmm-tlgq
Автор

A simple laravel + flutter ecommerce would be nice.

aviwemusa
Автор

great video, tnx/ what is the name of the Music on the background?

arshiajs
Автор

Thanks for the nice tutorial, where can I find those images and icons? Help please...

robertkisiri
Автор

hello sir why, when I run my project it shows error E/flutter (18813): Unhandled Exception: NoSuchMethodError: Class 'String' has no instance getter 'body'.

dnzmtfz
Автор

Hey sir can you make Bitcoin wallet (send, receive money in bitcoin) In flutter with backend please ?

ImranShaikh-ktey
Автор

please remove background music otherwise i start dancing instead of paying attention

toyly
Автор

please tell me why I get this tipe of error in fetch data by localhost

Unhandled Exception: SocketException: Failed host lookup: 'laravel_flutter.test' (OS Error: No address associated with hostname, errno = 7

syedasaleha