title: Flutter showDialog(context) in initState method
body: <p>I'm trying to use the <code>showDialog(context, builder)</code> to display a greeting message when the user navigates to a certain page.</p>
  
  <p>I tried this by calling the <code>showDialog</code> in the <code>initState</code> method of a stateful widget on that page. While it does work, it appears I don't have access to the actual context. </p>
  
  <p>Is there a way in Flutter to access the <code>context</code> in the <code>initState()</code> method?</p>
  
  <p>If not, is there another way to achieve this behaviour in a better way?</p>
  
  <pre><code>@override
  void initState() {
    super.initState();
    new Future.delayed(Duration.zero, () {
      showDialog(context: context, 
      builder: (BuildContext context) {
        return new Container(child: new Text('foo'));
      });
    });
  }
  </code></pre>