title: Flutter error: Bad state: Insecure HTTP is not allowed by platform
body: <p>When I run my Flutter app that makes a network connection to an HTTP URL, I get an error:
  <strong>Bad state: Insecure HTTP is not allowed by platform</strong></p>
  <p>I get an exception like this every time I make a network request using Dio.</p>
  <pre><code>DioError [DioErrorType.DEFAULT]: Bad state: Insecure HTTP is not allowed by platform: &lt;my_private_api_url&gt;
  </code></pre>