flutter-web-dashboard-template icon indicating copy to clipboard operation
flutter-web-dashboard-template copied to clipboard

final Function onTap

Open amyork1990 opened this issue 3 years ago • 2 comments

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!!

amyork1990 avatar Sep 03 '22 22:09 amyork1990

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

aditya-wappnet avatar Apr 08 '23 14:04 aditya-wappnet

It should be final Function() onTap

Tonouewa-kefil avatar Sep 03 '23 05:09 Tonouewa-kefil