Flutter的插件地址
https
Dio
用来进行网络访问的插件,相比内置的更加方便
shared_preferences
一款用来持久化存储的,在不同的平台会调用平台独有的持久化存储的
NSUserDefaults on iOS and macOS, SharedPreferences on Android, etc.
json序列化插件(json_serializable,build_runner,json_annotation)
flutter内置了将json数据转为list或者map的json.decode方法,还有将list和map转为json的json.encode方法。
但是我们在使用中还是比较习惯类,取值方便不说还有静态类型校验。这个插件就是作为中间方,将map和list转化为model类的一款插件。
json 转类
(json.decode)。。。。。。。 (类.fromJson)
json------------------------map----------------------------model
类转json
(类.toJson) 。。。。。。。。。 (json.encode)
model------------------------map----------------------------json
如果要使用的话需要用到这三个插件
json_annotation
json_serializable
build_runner
fluttertoast
flutter中实现toast功能的一款插件。