title: flutter: cant access non ssl api after set proxy
body: <p>i need to set proxy globally in my project, i did that with <code>flutter_socks_proxy</code> package.</p>
  <pre><code>void main() {
    WidgetsFlutterBinding.ensureInitialized();
    SocksProxy.initProxy(
        proxy: 'SOCKS5 192.111.139.165:4145',
        onCreate: (client) {
          client.badCertificateCallback =
              (X509Certificate cert, String host, int port) =&gt; true;
        });
  
    runApp(MyApp());
  }
  </code></pre>
  <p>it works but i have a problem, i can't access http (non ssl) api after set the proxy.</p>
  <pre><code>final url = Uri.parse('http://worldtimeapi.org/api/timezone/Europe/London');
  final response = await http.get(url);
  print(response.body);
  </code></pre>
  <p>this is the error</p>
  <pre><code>[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Connection reset by peer
  </code></pre>
  <p>it works fine with https apis.</p>