caching data using dio http cache in Flutter

preview_player
Показать описание
api example:

packages:


json to dart:

شرح طريقة حفظ البيانات من الانترنت واستعراضها بشكل دون اتصال بالانترنت يتم حفظها داخل الجهاز ثم تستعرضها بدون انترنت.

simple example explain how to get data from api from internet and save the data to view it offline using dio package.
caching data has 3 ways that I know, we can save it in json file, database like(floor, sqflite, hive etc.), or dio.
In this video we are explain the last way was dio, using dio, and dio_http_cache packages, which is just read the data only to save it locally and then we can view it offline without need to connect to the internet.
Рекомендации по теме
Комментарии
Автор

السلام عليكم
يعطيك العافية بشمهندس عبدالله
في حالة ال POST او PUT والتطبيق في حالة ال Offline ماذا علينا ان نفعل ؟

hassankamalalmosadder
Автор

hey pro is there a way to use cache dio with flutter web?

hoangloc