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

Cannot use parameter with same name as widget function #69

Open
triallax opened this issue May 12, 2020 · 0 comments
Open

Cannot use parameter with same name as widget function #69

triallax opened this issue May 12, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@triallax
Copy link

Example:

@widget
Widget foo(String foo) => Text(foo);

functional_widget generates a widget class for this, but it doesn't compile because the field name in the generated class shadows the function.

I don't think it's possible to fix this issue, so perhaps the best path is to print an error in this case.

@rrousselGit rrousselGit added the bug Something isn't working label Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants