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

Bug. Parameters are not passed to the view #19

Closed
lacoste-sochi opened this issue Jun 16, 2022 · 3 comments
Closed

Bug. Parameters are not passed to the view #19

lacoste-sochi opened this issue Jun 16, 2022 · 3 comments

Comments

@lacoste-sochi
Copy link

lacoste-sochi commented Jun 16, 2022

As I have not tried - but the parameters are not transmitted. Not the routeTo helper("/order-view", data: "Hello world!"), nor Navigator.pushNamed(context, "/order-view",arguments: "Hello World");

=((((((

image

P.S.
Found the reason, did not specify:
final HomeController controller = HomeController()

I hope it saves time for those who are looking, the ticket can be closed)

@agordn52
Copy link
Contributor

Yeah, that's right. Your Stateful Widget was missing a controller.
Closing this issue.

@taufiqridha
Copy link

Wozaaahhh.. this should be documented as well @agordn52 . stuck for hours. Thanks @lacoste-sochi
Love the framework

@taufiqridha
Copy link

And it's should be persist as "controller" as name for controller variable. or you can't get the data

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

3 participants