公司目前使用内网IP。所以我想知道使用pub get的包的下载端口和url地址。防火墙必须允许哪些IP和端口才能使用包下载?
发布于 2021-03-03 18:32:07
您可以像这样链接pubspec.yaml中的git存储库:
dependencies:
plugin1:
git: https://github.com/flutter/plugin1.git
或者,您可以像这样链接一个私有的托管包:
dependencies:
plugin1:
hosted:
name: plugin1
url: http://your-package-server.com
你可以找到更多的例子和更详细的解释here
https://stackoverflow.com/questions/66453773
复制相似问题