Flutter Rest API - Simplifying Make API Call Using Retrofit

  Рет қаралды 20,510

Flutter Guys

Flutter Guys

Жыл бұрын

📄In the mobile app development lifecycle, communicating with the server(via API) to fetch or store data is one of the basic needs.
in this video we calling Rest API using Retrofit package in Flutter.
⚡ SUBSCRIBE HERE⚡
🔗 cutt.ly/2XkZz0X
🌐 Social Media
🔗 Linkedin: / mahdinazmi
/ taimoorghafar
🔗 GitHub: github.com/mahdinazmi
github.com/taimoor522
🔗 Twitter: / mahdinazmi
#flutter #fluttertutorial #flutterwidgets #fluttercourse

Пікірлер: 25
@juanmacias5922
@juanmacias5922 Жыл бұрын
Gotta love code generation. I'd actually never heard of retrofit, seems super helpful.
@naimurhasanrwd
@naimurhasanrwd Жыл бұрын
Awesome thanks for making it short! Otherwise i would have missed this amazing video and package.
@flutterguys
@flutterguys Жыл бұрын
Glad you liked it!
@sinazp8422
@sinazp8422 8 ай бұрын
great , i am getting to the next level of coding by flutter guys
@flutterguys
@flutterguys 8 ай бұрын
Thank you Sina ❤️🇮🇷
@ajinzrathod
@ajinzrathod Ай бұрын
Loved your channel.. Can you recommend/create some video or recommend some article/blog where I can see how can I write test when I am using retrofit and dio
@rajkumarm6911
@rajkumarm6911 Жыл бұрын
Very nice..can you explain a error handling part..
@ahmednabil4456
@ahmednabil4456 Жыл бұрын
Thanks ❤
@flutterguys
@flutterguys Жыл бұрын
✌❤
@sabeehaisrar8385
@sabeehaisrar8385 Жыл бұрын
Please make videos on AR CORE in flutter
@kevinkouketsu3952
@kevinkouketsu3952 Жыл бұрын
Great video! Thanks a lot. How would you handle it when you need to send the auth token (bearer) with the request? Is there a way to make it more automatic, instead of passing the DioOptions as you did? The same goes for contentType. I don't want to pass the content-type in every request
@flutterguys
@flutterguys Жыл бұрын
To be honest, I did not check this, You need read retrofit's document.
@yusufmuhammad9866
@yusufmuhammad9866 Жыл бұрын
Is dio is part of retrofit package? Or we need to install dio manually?
@flutterguys
@flutterguys Жыл бұрын
It is part of retrofit
@anaskhaery1854
@anaskhaery1854 Жыл бұрын
if my URL end with ticker what type should the List be ? and if I changed the getposts to getTicker will json still work ?
@flutterguys
@flutterguys Жыл бұрын
Yes it will works. You can change URL and check the response.
@techietoons
@techietoons 6 күн бұрын
You did not add INTERNET permission, then also it is working.
@tristankluivert197
@tristankluivert197 Жыл бұрын
But http is recommended by the flutter team
@flutterguys
@flutterguys Жыл бұрын
Http is very basic. For extended functionalities you need something else like retrofit or dio. By the way, which state management you use?
@tristankluivert197
@tristankluivert197 Жыл бұрын
@@flutterguys personally I use getx as it's easy, although several times I've heard other devs or companies say they prefer bloc
@flutterguys
@flutterguys Жыл бұрын
But provider is recommended by Flutter team. See you are using getx because it provides more features. Same is the case for http vs retrofit/dio
@nguyenconghoan2977
@nguyenconghoan2977 9 ай бұрын
Hello,I gendered file api_service.g.dart but can't gender file post_modal.g.dart.I write the same code as you.why?
@hariprasadhari5045
@hariprasadhari5045 Жыл бұрын
Im following the clean architecture tutorials of yours. but when im trying that intitaly the app runs when I generate news_api_service.dart file im not getting any api call or responce call is reached up to , final httpResponse = await _newsApiService.getNewsArticles( apiKey:newsAPIKey, country:countryQuery, category:categoryQuery, ); and nothing happens then. any fix for this
@flutterguys
@flutterguys Жыл бұрын
Please check source code & Article Model class. And also I guess you didn't change the generated file. We change generated file here : kzbin.info/www/bejne/gV6Yh555rNOLaNE
@wiazowski1
@wiazowski1 Жыл бұрын
very goo, but all tutorials a very fast and don't explaining a lot.. It is tutorials for people who do not need tutorials
Flutter Basics by a REAL Project
25:42
Flutter Guys
Рет қаралды 436 М.
How to use Themes in #Flutter
0:55
Flutter
Рет қаралды 31 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 28 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,4 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 36 МЛН
Next js 14 Tutorial In Telugu - 6 | MetaData | MetaTags
2:15
Developed by Hari
Рет қаралды 31
Search Filter List in React JS - Part 1
11:17
Pawan Deore
Рет қаралды 155
Next js 14 Tutorial In Telugu - 4 | Styles | CSS
1:44
Developed by Hari
Рет қаралды 44
Noob To Pro: 10 Epic UI Packages in Flutter - 2024
4:23
AstroDevs
Рет қаралды 33 М.
What Are APIs? - Simply Explained
6:49
Simply Explained
Рет қаралды 876 М.
#2 - Employee Record management with React Js, python and Django
53:47
Python, React, & Django Fullstack Dev Tutorial
Рет қаралды 225
@Intro Flutter Rest API & BLoc Pattern [Retrofit and Cubit]
1:18
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 13 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 484 М.
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 479 М.
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 1,8 МЛН