title: Flutter - Routing between different Views
body: <p>So, I have this file:</p>
  
  <pre><code>import 'package:flutter/material.dart';
  import "calculateDerivations.dart";
  import "calculateRoots.dart";
  
  void main() {
    runApp(new MyApp());
  }
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return new MaterialApp(
        title: 'Flutter Demo',
        theme: new ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: new MyHomePage(title: 'Ableitungen berechnen'),
      );
    }
  }
  
  class MyHomePage extends StatefulWidget {
    MyHomePage({Key key, this.title}) : super(key: key);
  
    final String title;
  
    @override
    _MyHomePageState createState() =&gt; new _MyHomePageState();
  }
  
  class _MyHomePageState extends State&lt;MyHomePage&gt; {
  
    @override
    Widget build(BuildContext context) {
  
      return new Scaffold(
        appBar: new AppBar(title: new Text(config.title)),
        body: new Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: [
            new InputWidget(),
          ]
        ),
      );
    }
  }
  
  class InputWidget extends StatefulWidget {
    @override
    InputWidgetState createState() =&gt; new InputWidgetState();
  }
  
  class InputWidgetState extends State&lt;InputWidget&gt; {
  
    InputValue val = new InputValue(text: "");
    String ersteAbleitung = "";
    String zweiteAbleitung = "";
    String dritteAbleitung = "";
    String roots = "";
    String function = "";
  
    void _submitted(){
      setState((){
        /*
         * Redirect here
         */
      });
    }
  
    @override
    Widget build(BuildContext context) {
  
      return new Column(
          children: [
            new Input(
              value: val,
              labelText: 'Funktion hier eingeben',
              onChanged: (InputValue newInputValue) {
                setState(() {
                  val = newInputValue;
                });
            }),
            new IconButton(
              icon: new Icon(Icons.check),
              onPressed: _submitted,
            )
          ]
      );
    }
  }
  </code></pre>
  
  <p>As soon as the user now clicks the IconButton (which calls _submitted), I want him to be redirected to a new View (Widget). How would I solve this routing problem in Flutter?</p>
  
  <p>Thanks in advance</p>