Flutter Pub私有仓库搭建
1.私有仓库搭建: https://github.com/dart-archive/pub_server
2.开发 package: https://flutterchina.club/using-packages/
3.上传
修改pubspec.yaml文件,添加
publish_to: http://192.168.214.144:8080
flutter pub get
flutter pub publish
修改端口号
pub_server/example.dart 文件
修改:
parser.addOption('port', abbr: 'p', defaultsTo: '8181');