title: Flutter Navigator "argument type 'Context' can't be assigned to the parameter type 'BuildContext'"
body: <p>I am trying to pass my menuButton category Names to the next page and have that set the state of the next page on my categoryScreens.</p>
  
  <p>Currently I am receiving a red squiggly line with a note of "argument type 'Context' can't be assigned to the parameter type 'BuildContext'"</p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'package:boardwalk/Screens/categoryScreen.dart';
  import 'package:boardwalk/Widgets/headerCategory.dart';
  import 'package:path/path.dart';
  
  class homeMenu extends StatelessWidget {
    const homeMenu({Key key}) : super(key: key);
    Padding menuButton(String category, IconData categoryIcon) {
      return Padding(
          padding: const EdgeInsets.symmetric(horizontal: 10),
          child: Container(
            width: 95,
            child: InkWell(
              onTap: ()=&gt;
                Navigator.of(context).push(MaterialPageRoute(builder: (context) =&gt; categoryScreen()));
              ,
              child: Column(
                children: &lt;Widget&gt;[
                  Center(
                    child: Container(
                      height: 70,
                      width: 70,
                      decoration: BoxDecoration(
                        gradient: LinearGradient(
                          colors: [Colors.deepPurple, Colors.deepPurpleAccent],
                        ),
                        shape: BoxShape.circle,
                      ),
                      child: Icon(
                        categoryIcon,
                        size: 40.0,
                        color: Colors.white,
                      ),
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.all(6.0),
                    child: Text(
                      category,
                      style: TextStyle(
                        color: Colors.deepPurpleAccent,
                        fontSize: 14,
                      ),
                    ),
                  )
                ],
              ),
            ),
          ));
    }
  
    @override
    Widget build(BuildContext context) {
      return Padding(
        padding: const EdgeInsets.only(top: 8.0),
        child: Container(
          height: 100,
          width: 400,
          child: ListView(scrollDirection: Axis.horizontal, children: &lt;Widget&gt;[
            menuButton('Home', Icons.home),
            menuButton('Eat', Icons.restaurant_menu),
            menuButton('Shop', Icons.store),
            menuButton('Travel', Icons.airplanemode_active),
            menuButton('Play', Icons.local_activity),
            menuButton('Service', Icons.build),
          ]),
        ),
      );
    }
  }
  </code></pre>
  
  <p>I am not sure what to be passing in the navigator if it does not like context, I am completely unsure of what is expecting at this point. </p>