title: How to fix: " Getter not found: 'context'. "
body: <p>I want to make a flutter app that uses hero widget and inkwell widget, but when I try to use navigator.push to navigate to a new page I get this error:</p>
  
  <pre><code>Compiler message: lib/main.dart:238:25: Error: Getter not found: 'context'.
           Navigator.push(context ,MaterialPageRoute(
                          ^^^^^^^
  </code></pre>
  
  <p>I try to ask my question in some Telegram group and they answer me that I should define name 'context', but when I do it, I get this error and even navigator doesn't push to the new page.</p>
  
  <pre><code>...
  Widget _buildPillItmes(String name, String imagePath, String count){
    return Padding(
      padding: EdgeInsets.only(top: 20.0, right: 10.0, left: 10.0),
      child: new InkWell(
         onTap: () {
           //BuildContext context;
           Navigator.push(context ,MaterialPageRoute(
               builder: (context) =&gt; DetailsPage(heroTag: imagePath, pillName: name, pillCount: count)
           ));
         },
        child: new Row(
  ...
  </code></pre>
  
  <p>I expected to navigate to the new page but I get nothing except my first page</p>