How to Communicate with REST APIs in Flutter

  Рет қаралды 16,953

The Flutter Factory

The Flutter Factory

Күн бұрын

Пікірлер: 31
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
Just about every developer needs to work with REST APIs at some point in their career. Are there any other aspects of REST APIs that you would like to see covered?
@MiNombreEsGuevara
@MiNombreEsGuevara 3 жыл бұрын
Bro, thanks for your videos, I really love the way you teach us and I haven't seen other channels teaching the correct architecture to structure our apps! It would be great if you continue with a second part covering error handling or how to implement loadings, error and success state to keep the user aware of what is going on with the app.
@alvin3171997
@alvin3171997 3 жыл бұрын
Amazing! Can’t wait for the auth token and api key security guideline video 💯 1 minor thing that can be changed is that the framework list in the controller should be a getter, so the private list can’t be changed from the UI. Or make it immutable using KtList from a flutter package called Kt-dart.
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
Thanks for the kind words!. Writing a getter for that field wouldn't prevent the original field from being directly accessible. I get where you are coming from, but that is not good practice in Dart. You won't see that pattern in the official GetX documentation for that reason. Remember that the concepts of private variables aren't really a thing (only at a library level). Check out the docs here for more info: tinyurl.com/y6k89k7u
@AdriSinaga
@AdriSinaga 3 жыл бұрын
Agreed, there is no suggestion about getter on Getx
@danielm3977
@danielm3977 3 жыл бұрын
Just love how to teach everything, thank you mate. Your tutorials are as dope as the Net Ninja " channel . Thank you .
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
Thanks. I'm always trying to think of ways to improve the quality of the content.
@meeDipesh
@meeDipesh 3 жыл бұрын
Amazing mate. Keep up the good work. ❤❤
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
Will do!
@thechrisgate
@thechrisgate 3 жыл бұрын
Nice work...........it will be nice to upload the final code because some of us watch till end then look at the final code..............cheers!
@AdriSinaga
@AdriSinaga 3 жыл бұрын
Your video is amazing anyway. Keep it up 💥👍🏻
@agung_laksana
@agung_laksana 3 жыл бұрын
Hi, Thanks for the video, it really helpful. may I ask you something ? at 33:05 why when creating data to server (add framework) we need to also make it through repository? I mean....I can understand if fetching all data we need to use it through repository because if for example there is no internet connection, then just show data from local storage. but why update and create data also through repository, why not directly to api client from controller ?
@ebenezerferguson3756
@ebenezerferguson3756 3 жыл бұрын
Great video. Can you show how to handle errors from the APIs?...your code assumes the response from the API could always be mapped to the class. But how do you handle different scenarios or errors
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
I might do a part 2 for that topic specifically. I try to limit the length of these videos. This one was already longer than I anticipated.
@ebenezerferguson3756
@ebenezerferguson3756 3 жыл бұрын
@@TheFlutterFactory Sounds good. Thanks. Will be expecting that part 2
@dedutdede9928
@dedutdede9928 2 жыл бұрын
OH NICE
@mohsinikram8921
@mohsinikram8921 3 жыл бұрын
Great explanation. Can you push full source code on your repository. Because I have checked, there is no latest code. Waiting... :)
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
I stopped putting the entire source code out there once I realized that a lot of people were just taking the final code without actually looking at the videos and learning. My goal is to help people learn how to code in these two frameworks...not help people learn how to copy and paste 🙂 I put a lot of time and effort into these videos and i can see how many people actually watch them vs just clicking on the link to get the code.
@shogi23
@shogi23 3 жыл бұрын
Hi you are amazing, your videos give me a huge development, can you make a video about backendless setup. I don't know what I'm doing wrong
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
I would, but it's not really specific to mobile development and the backendless docs are very good. What are you having issues with?
@shogi23
@shogi23 3 жыл бұрын
@@TheFlutterFactory There is no movie in the whole KZbin that would show the implementation of a flutter database other than firebase, I think it would be a very nice viewership, and I don't even know if I have a good url :)
3 жыл бұрын
@@shogi23 +1, almost every kind of tutorials are based on firebase, and I know that Flutter base supporter is Google, and ofc Firebase is also optimized for Flutter projects, but still would great to see a general approach, or like this, backendless
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
Most people starting out don't want to pay for Backendless. It's only free for the first month. This is the main reason why Firebase is the most popular backend for startups
@axelbryancasauran5159
@axelbryancasauran5159 3 жыл бұрын
how do you debug flutter API request to your localhost server like PHP (xdebug)?
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
On the front end side, I use the Logger + Intercepters like I did in the video to see every piece of data during the request and response. Sometimes I use Postman to test API endpoints before I even start coding. Debugging APIs on the server side is beyond the scope of this channel.
@prembudhu26
@prembudhu26 3 жыл бұрын
how do you secure the api key
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
There are a ton of different ways with varying levels of security and difficulty. You can store them using the flutter_secure_storage package, certificate pinning, local environment variables, etc. You should research your options and choose the one that fits best on the level of security that you require.
@varunlohade383
@varunlohade383 3 жыл бұрын
G-O-l-d
@MdSalahUddin-tz9pk
@MdSalahUddin-tz9pk 3 жыл бұрын
source code?
@softwaregarden3426
@softwaregarden3426 3 жыл бұрын
FlatButton is deprectiated now, so I refactor your CheetahButton class. import 'package:flutter/material.dart'; class CheetahButton extends StatelessWidget { final VoidCallback onPressed; final String text; CheetahButton({required this.onPressed, required this.text}); @override Widget build(BuildContext context) { return ElevatedButton( style: ElevatedButton.styleFrom( primary: Colors.red, // background onPrimary: Colors.white, // foreground ), onPressed: onPressed, child: Text(text), ); } }
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
Good. I'll be starting a brand new app for the channel with the latest versions of Dart and Flutter
GetX - Flutter Internationalization (Switch languages) - Part 4
23:30
The Flutter Factory
Рет қаралды 8 М.
Moving from setState to Riverpod in Flutter Part 1
36:00
The Flutter Factory
Рет қаралды 18 М.
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 119 МЛН
Flutter Api Calling and JSON Parsing using Dio and Json Serializable
1:04:33
REST API with GetX | Flutter tutorial | Shopping app
26:43
Flutter BLoC/Cubit Tutorial with REST API and Repository Pattern
1:38:02
Implementing complex UI with Flutter - Marcin Szałek | Flutter Europe
44:26
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 564 М.
Flutter State Management with Provider 5
43:08
The Flutter Factory
Рет қаралды 26 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 67 М.
GetX State Management In Flutter With API Calling (Flutter Tutorial)
1:22:56