title: navigator operation requested with a context that does not include a navigator statefulwidget
body: <p>I am working on the Flutter code that follows. I have issues with the second button called "Regitrese". Every place I have looked work with statelesswidgets so I'm not sure how to fix it. I tried changing the void to put on it home: MyHomePage() and put MyHomePage to statefull instead of taking the statefull from MyApp bus it shows a mistake Missing concrete implementation of StatefulWidget.createState. I am not sure how is it supposed to go. Can you make a button work in a StatefulWidget? Is there a trick I am not seeing?</p>
  
  <pre><code>void main()=&gt; runApp(new MyApp());
  
  class MyApp extends StatefulWidget{
   @override
     State&lt;StatefulWidget&gt; createState(){
       return new MyHomePage();
     }
  }
  
  class MyHomePage extends State&lt;MyApp&gt;{
   final TextEditingController rutController = TextEditingController();
   final TextEditingController passwordController = TextEditingController();
   var _rut, _password;
  
   @override
   Widget build(BuildContext context) {
     return new MaterialApp(
     home: new Scaffold(
      body: new Container(
        padding: const EdgeInsets.all(50.0),
        child: new Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: &lt;Widget&gt;[
            TextFormField(
              controller: this.rutController,
              decoration: InputDecoration(
                labelText: 'Rut',
                hintText: 'eg. 154683265',
                  suffixIcon: IconButton(
                    icon: Icon(Icons.clear),
                    onPressed: () {
                      rutController.clear();
                    }
                  )
              ),
            ),
            TextFormField(
              controller: this.passwordController,
              decoration: InputDecoration(
                labelText: 'Contraseña',
                hintText: 'Contraseña',
                  suffixIcon: IconButton(
                      icon: Icon(Icons.clear),
                      onPressed: () {
                        passwordController.clear();
                      },
                  )
              ),
              obscureText: true,
            ),
            RaisedButton(
              onPressed: (){
                loginButton(rut: this.rutController.text, password: this.passwordController.text);
              },
              child: Text('Login'),
            ),
            RaisedButton(
              onPressed: (){
                Navigator.push(
                   context,
                   MaterialPageRoute(builder(context)=&gt;SelectUserPage())
                )
              },
              child: Text('Registrese'),
            ),
          ],
        ),
      ),
    ),
   );
  }
  }
  
  class SelectUserType extends StatelessWidget{
   @override
   Widget build(BuildContext context){
    return new Container(
     child: new Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: &lt;Widget&gt;[
        RaisedButton(
          onPressed: (){
            //Do something
          },
          child: Text(''),
        ),
        RaisedButton(
          onPressed: (){
            //Do something
          },
          child: Text(''),
        ),
      ],
    ),
  );
  }
  }
  </code></pre>