title: Why do we need to provide the context in MaterialPageRoute when the build method of the widget is also taking the context?
body: <p>Why do we need to provide the <strong>context</strong> in <strong>MaterialPageRoute</strong> when the <em>build method of the widget</em> is also taking the <strong>context</strong>?</p>
  <pre><code>onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute(builder: (context) {
                    return Scaffold(
                      appBar: AppBar(
                        title: Text(&quot;Second Route&quot;),
                      ),
                      body: Center(
                        child: RaisedButton(
                          onPressed: () {
                            Navigator.pop(context);
                          },
                          child: Text('Go back!'),
                        ),
                      ),
                    );
                  }),
                );
              },
  </code></pre>