Flutter Consume Rest API With Best Practices

preview_player
Показать описание
Hey Guys, in this Flutter video I will show you how to consume rest API in your Flutter app. You will not learn how to call an API the easy way, instead, you will learn the best practices to call and handle an API response.
You will also learn how to set up a network service directory that will contain all the network-related code and will handle the response of the API.

Learn to consume rest API step by step in Flutter.

For more Flutter content be sure to subscribe to the channel and turn on your notifications.

Check out Flutter how-to videos:

Links:

------------- Content of this video -------------
00:00 Demo of the finished app
00:33 Setting up our project
02:12 Adding the model
05:05 Setting up the network directory
06:27 Implementing Network service and helper
23:44 Modifying Article widget
26:07 Calling the API
30:53 Testing the app

#flutter #flutter_rest_api #flutter_consume_rest_api
Рекомендации по теме
Комментарии
Автор

Really, learnt out of the box way of Integrating network services, thanks a lot

khanisrarahmedalihusain
Автор

Hi, Thank you very much for this video. It helped me a lot, can you please tell what tool you are using for generating the model classes

venkateshkarra
Автор

This channel gonna be Rock. checked all videos and followed them in an easy way. best for beginners. Salute you.

rojgaariyatra
Автор

Excelent video, thanks you. It helped me a lot.

rayhanaswiansyah
Автор

Awesome!… can you integrate the provider state management and url luncher to this? so we could go to the article source website… thanks 🙏

t_tek
Автор

Excelent Video, was precisely what I was looking for, great help!
Quick question, how could I make it so the query parameters can change based on what the user wants. For example making it so you can choose the country you want to see news from?

CheloWasabyx
Автор

I/flutter ( 5208): Response 200
I/flutter ( 5208): Error - Message unknown

hi sir, do you have any idea on this, it show the the loading only instead of the the items. thank you in advance

bernard
Автор

Please when I run the flutter pub run build_runner build, no file was created, any ideal?

josephampah
Автор

can u try google sheets api with flutter

justincoding
Автор

when i use json serializable i always get dart:mirror error, need help getting around that

caldewoodalikula
Автор

what is the difference between this constructor : const construct. ( ); and this one : construct( );

youbsalama
Автор

Can we get source code of this project ?

palashshrivastava
Автор

Sorry but this is not teaching, this is copy/pasting and voice annoatating what you do, vs actually explaining what's going on. First you don't say where the obviously generated JSON-to-class files come from. That's where it start. And then you go on endlessly rambling about then we copy this here and paste this there.
There is no learning involved. Why do you create this and that. Not a good video.

dalu_