Fix flutter connection problems in Iran
Mar 25, 2021
In Iran due to the filtrations and other limitations, you may have connection problems while working with dart and flutter. Here’s an easy way to fix them.
Here are two options available:
1. Use Shecan.ir
Shecan is a free service that comes in handy for developers (flutters’ as well) to fix connection problems related to sanctions.
All you have to do is setting up shecan’s DNSs. Check out their tutorials page.
2. Use flutter mirrors
Flutter has an option to use a mirror site for downloading and upgrading flutter.
Just run these two commands and you’re good to go:
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
This mirror site is working as I’m writing. Please share other mirror sites you’re aware of.