title: Flutter app behind corporate firewall throws TLS error during packages get
body: <p>Recently have installed Flutter and exploring hello-world app. Followed all steps mentioned at <a href="https://flutter.io/get-started/" rel="noreferrer">https://flutter.io/get-started/</a> and was able to run  </p>
  
  <p><strong>:: flutter doctor</strong></p>
  
  <pre><code>Doctor summary (to see all details, run flutter doctor -v):
  [√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.15063], locale en-US)
  [√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
  [√] Android Studio (version 3.1)
  [!] VS Code, 64-bit edition (version 1.26.0)
  [√] Connected devices (1 available)
  ! Doctor found issues in 1 categories.
  </code></pre>
  
  <p>Also was able to create app skeleton with following command;</p>
  
  <p><strong>:: flutter create myapp</strong></p>
  
  <p>But when it was trying to install all dependencies mentioned under pubspec.yaml, it started showing error and kept trying to reconnect again. Here is the logs,</p>
  
  <pre><code>Running "flutter packages get" in hello_world...
  Got TLS error trying to find package cupertino_icons at https://pub.dartlang.org.
  pub get failed (69) -- attempting retry 1 in 1 second...
  Got TLS error trying to find package cupertino_icons at https://pub.dartlang.org.
  pub get failed (69) -- attempting retry 2 in 2 seconds...
  </code></pre>
  
  <p>I suspect its because of firewall and for other package managers I have been using proxy server to enable fetch which works just fine. I could not find a way to implement such proxy for flutter or pub. I also tried to use china server but that also didn't helped me. I have installed and uninstalled couple of time to make sure cache is not causing this issue.</p>
  
  <p>Does anyone have figured this out yet? </p>