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

final Function onTap #31

Open
amyork1990 opened this issue Sep 3, 2022 · 2 comments
Open

final Function onTap #31

amyork1990 opened this issue Sep 3, 2022 · 2 comments

Comments

@amyork1990
Copy link

amyork1990 commented Sep 3, 2022

Hi there,

There is an error when you are adding variables in the classes horizontal_menu_item, and menu_item. The variable defined is "final Function onTap"

In the InkWell(), there is an error on the parameter onTap : onTap.

The defined error is: "argument type 'Function' can't be assigned to the parameter type 'void Function()?'."

The solution is changing the type of the variable from "final Function onTap" to "final VoidCallback() onTap"

Thank you for everything so far, really appreciated!!

@aditya-wappnet
Copy link

Yes you can achieve that by doing void function()?

@Tonouewa-kefil
Copy link

It should be final Function() onTap

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