Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

flutter pub get taking too long

# 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: #flutter #pub #long
ADD COMMENT
Topic
Name
9+8 =