Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routeTo is undefined #7

Closed
chrisvidal opened this issue Jul 9, 2021 · 3 comments
Closed

routeTo is undefined #7

chrisvidal opened this issue Jul 9, 2021 · 3 comments

Comments

@chrisvidal
Copy link

the doc is mentioning the method routeTo to navigate but it cant be found.

@agordn52
Copy link
Contributor

The routeTo helper method is only available in a NyState widget.


If you create a new page with:

flutter pub run nylo_framework:main make:page new_page -c

That'll help you see how the widget extends NyState.

You can of course still navigate with the Navigator.pushNamed(context, '/settings'); class.

@chrisvidal
Copy link
Author

thanks @agordn52
then could explain the goals of the controller usage? I am not sure to get it

@agordn52
Copy link
Contributor

Here's an example here https://nylo.dev/docs/1.x/controllers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants