当前位置: 首页 > 后端技术 > Python

在无网络环境下使用flutter第三方库

时间:2023-03-25 23:38:49 Python

有些工作环境,电脑在内网无法联网,但是可以通过U盘拷贝库文件。1.找到mac系统原生第三方库的下载地址,flutterthird-party库会存在这里$home/.pub-cache/hosted/pub.flutter-io.cn2.复制到内网3、内网项目配置在项目根目录下,创建plugin目录,将需要的第三方库复制到该目录下3、pubspec.yaml文件引用方式dio:path:plugin/dio-3.0.10引用import'package:dio/dio.dart'在代码中;