foreword
With the continuous learning of Flutter, I have come into contact with many third-party libraries. So I'm going to do a simple tidy up.
dio
Introduction
A powerful Dart/Flutter HTTP client that supports global configuration, interceptors, form data, request cancellation, file upload/download, timeout and custom adapters, etc.
Official address
https://pub-web.flutter-io.cn/packages/dio
Install
flutter pub add dio
Simple use of
flutter: network request, json data into Model
path_provider
Introduction
A Flutter plugin for finding common locations on the filesystem. Supports Android, iOS, Linux, macOS and Windows. Not all methods are supported on all platforms.
Official address
https://pub-web.flutter-io.cn/packages/path_provider
Install
flutter pub add path_provider
Simple use of
flutter: file system directory, file reading and writing
sqflite
Introduction
A SQLite plugin for Flutter. Supports iOS, Android and MacOS.
Official address
https://pub-web.flutter-io.cn/packages/sqflite
Install
flutter pub add sqflite
Simple use of
flutter: data persistence
logger
Introduction
Small, easy-to-use and expandable logger that prints nice logs.
Inspired by android recorder.
Official address
https://pub-web.flutter-io.cn/packages/logger
Install
flutter pub add logger
easy to use
// 创建日志对象
var logger = Logger();
// 详细日志,用于输出详细的调试信息
logger.v("详细信息");
// debugger日志
logger.d("debugger信息");
// 普通信息
logger.i("普通信息");
// 警告信息
logger.w("警告信息");
// 错误信息
logger.e("错误信息");
// 严重的故障日志
logger.wtf("严重的故障日志");
cached_network_image
Introduction
Used to display images from the internet and save them in a cache directory
Official address
https://pub-web.flutter-io.cn/packages/cached_network_image
Install
flutter pub add cached_network_image
Basic use of
Flutter: network image cache plugin - cached_network_image
flutter_easyloading
Introduction
A clean and lightweight Flutter loading/toast widget, easy to use without context, supports iOS, Android and Web
Install
flutter pub add flutter_easyloading
official address
https://pub-web.flutter-io.cn/packages/flutter_easyloading
Basic use of
Flutter: EasyLoading (loading, message prompts)