You must set environment variables
https://www.dartlang.org/tools/editor/troubleshoot.html#pub-get-firewall
http_proxy=http://<yourproxy>.<yourdomain>.com:9090/ https_proxy=https://<yourproxy>.<yourdomain>.com:9090/ no_proxy=localhost,127.0.0.0/8
If your proxy server needs authentication, the configuration will look like this:
http_proxy=http://<username>:<password>@<yourproxy>.<yourdomain>.com:9090/ https_proxy=https://<username>:<password>@<yourproxy>.<yourdomain>.com:9090/
DartEditor is no longer
To enable the Dart Editor to check for updates, add the following to the DartEditor.ini file:
-Dhttp.proxyHost=<yourproxy>.<yourdomain>.com -Dhttp.proxyPort=9090 -Dhttps.proxyHost=<yourproxy>.<yourdomain>.com -Dhttps.proxyPort=9090
If you need a username and password for authentication, add:
-Dhttp.proxyUser=<username> -Dhttp.proxyPassword=<passwordstring> -Dhttps.proxyUser=<username> -Dhttps.proxyPassword=<passwordstring>
Strike>
See also https://github.com/dart-lang/sdk/issues/24080
source share