title: ElevatedButton doesn't react after clicking in Flutter
body: <p>i have two TextFormFields (name and age). After typing something in inputs and clicking 'send' nothing happens.
  Here's my code:</p>
  <p>my edit_page</p>
  <pre><code>class UserForm extends StatefulWidget {
    const UserForm({Key? key}) : super(key: key);
  
    @override
    State&lt;UserForm&gt; createState() =&gt; _UserFormState();
  }
  
  class _UserFormState extends State&lt;UserForm&gt; {
    final formKey = GlobalKey&lt;FormState&gt;();
    final nameController = TextEditingController();
    final ageController = TextEditingController();
  
    @override
    void dispose() {
      super.dispose();
      nameController.dispose();
      ageController.dispose();
    }
  
    @override
    Widget build(BuildContext context) {
      return Form(
        key: formKey,
        child: Padding(
          padding: const EdgeInsets.all(10.0),
          child: Column(
            children: [
              TextFormField(
                decoration: const InputDecoration(),
                controller: nameController,
              ),
              TextFormField(
                decoration: const InputDecoration(),
                controller: ageController,
              ),
              ElevatedButton(
                child: const Text('Send'),
                onPressed: () {
                  context.read&lt;UserProvider&gt;().updateUserInfo(
                        name: nameController.text,
                        age: ageController.text,
                      );
                },
              )
            ],
          ),
        ),
      );
    }
  }
  </code></pre>
  <p>profile page (here is the code who should display data from that textfields:</p>
  <pre><code>Consumer&lt;UserProvider&gt;(builder: (context, user, _) {
              return Text('Name: ${user.data.name}, Age: ${user.data.age}');
            })
  </code></pre>
  <p>my class which creates user:</p>
  <pre><code>class UserProvider extends ChangeNotifier {
    final _user = User();
  
    User get data =&gt; _user;
  
    void updateUserInfo({String? name, String? age}) {
      _user
        ..name = name ?? ''
        ..age = age ?? '';
  
      notifyListeners();
    }
  }
  
  class User {
    String name = '';
    String age = '';
  }
  </code></pre>
  <p>i also have these lines in my main.dart file in Stateless Widget:</p>
  <pre><code> @override
    Widget build(BuildContext context) {
      return ChangeNotifierProvider(
        create: (context) =&gt; UserProvider(),
  </code></pre>
  <p>It looks like i forgot about something but i really don't know where.</p>
  <p>EDIT:
  After creating this same project again from scratch it worked good. Also no need to create Navigator.push command. :)</p>