title: Check connectivity in flutter and change state according connection status
body: <p>I'm new to Flutter and <code>connectivity</code>. I try <code>connectivity</code> package it works but I want to implement in existing app. If there is connection available then open <code>HomePage()</code> state, otherwise refer to another <code>state</code>. <strong>Please help me.</strong></p>
  <p>Here's my code <a href="https://pastebin.com/3wbDiF8j" rel="nofollow noreferrer">https://pastebin.com/3wbDiF8j</a> (main.dart).
  <a href="https://pastebin.com/vPUYUdgc" rel="nofollow noreferrer">https://pastebin.com/vPUYUdgc</a> (noInternet.dart)</p>