Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

got socket error trying to find package cupertino_icons at https://pub.dartlang.org.

# On Linux, this worked for me and for many other people...
# It should work for you too.


export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

# On windows, you should create an environment variable with:
name: PUB_HOSTED_URL
value: https://pub.flutter-io.cn

name: FLUTTER_STORAGE_BASE_URL
value: https://storage.flutter-io.cn
 
PREVIOUS NEXT
Tagged: #socket #error #find #package
ADD COMMENT
Topic
Name
4+3 =