title: How can I resolve the exception error for routesetting in flutter?
body: <p>i'm new to flutter ... i created a page and the i linked it to another, but after routing it, i am getting this error whenever i want to click on the buttons on the next page cause i did'nt have the route specified in all the pages. i can i import for all pages?</p>
  <pre><code>Another exception was thrown: Could not find a generator for route RouteSettings(&quot;/transfer&quot;, null) in the _WidgetsAppState.
  </code></pre>
  <p>this was how i specified in the first page...</p>
  <pre><code>import 'package:mynewapp/wallet.dart';
  import 'package:mynewapp/cards.dart';
  
  void main() =&gt; runApp(
        MaterialApp(
          theme: ThemeData(),
          initialRoute: '/',
          routes: {
            '/': (context) =&gt; HomePage(),
            '/topup': (context) =&gt; TopUp(),
            '/transfer': (context) =&gt; Transfer(),
            '/invest': (context) =&gt; Invest(),
            '/wallet': (context) =&gt; Wallet(),
            '/cards': (context) =&gt; Cards(),
          },
        ),
      );
  </code></pre>
  <p>After a search through Stackoverflow, This works for me</p>
  <pre><code>Navigator.push(
                  context,
                  new MaterialPageRoute(
                    builder: (context) =&gt; new TopUp(),
                  ),
                );
  </code></pre>
  <p>the problem has been with the calling along, but a new error came up, tho, it works now.....</p>
  <pre><code>Another exception was thrown: SocketException: Failed host lookup: 'o.remove.bg' (OS Error: No address associated with hostname, errno = 7)
  </code></pre>
  <p>i don't understand what this error means.</p>