title: Add argument for LoginScreen()?
body: <p>I'm trying to navigate to my login screen but I have to add argument <code>onClickedLogin</code> and I don't know how to get that to work... what can I do? I'm a little out of my depth, trying to use code from two different classes.</p>
  <p>This is what I have:</p>
  <pre><code>onPressed: () {
                  () =&gt; Navigator.of(context).push(
                        MaterialPageRoute(
                          builder: (context) =&gt; LoginScreen(
                            onClickedLogin: () {},
                          ),
                        ),
                      );
                },
  </code></pre>
  <pre><code>class LoginScreen extends StatefulWidget {
    final Function() onClickedLogin;
  
    const LoginScreen({
      Key? key,
      required this.onClickedLogin,
    }) : super(key: key);
  </code></pre>
  <p>Let me know if you need to see more code.</p>
  <p>I get redirected to this page
  <a href="https://i.stack.imgur.com/TeUUO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TeUUO.png" alt="redirected to here" /></a></p>