Flutter封装网络请求

dio dio是一个强大的Dart Http请求库,支持Restful API、FormData、拦截器、请求取消、Cookie管理、文件上传/下载、超时等…web 咱们的网络请求就是在dio的基础上封装的 . 因此要引入dio包.api 添加依赖 dependencies: dio: ^x.x.x // 请使用pub上的最新版本 HttpUtil /* * Created by 李卓原
相关文章
相关标签/搜索