[英]I am wondering how to use pub get and package download when using the internal network in Flutter
The company currently uses the internal network IP.公司目前使用内网IP。 So I want to know the package download port and url address to use pub get.所以想知道package下载端口和url地址使用pub get。 What IPs and ports must the firewall allow to use package download?防火墙必须允许哪些 IP 和端口才能使用 package 下载?
You can link git repositories in your pubspec.yaml like this:您可以像这样在您的 pubspec.yaml 中链接 git 存储库:
dependencies:
plugin1:
git: https://github.com/flutter/plugin1.git
Or you can link a private hosted package like this:或者您可以像这样链接私有托管的 package:
dependencies:
plugin1:
hosted:
name: plugin1
url: http://your-package-server.com
You can find more examples and a more detailed explanation here您可以在此处找到更多示例和更详细的说明
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.