Santos-Enoque/flutter-web-dashboard-template

Question: Menucontroller() error

Closed this issue · 3 comments

dabes commented

I'm trying to follow your guide on skillshare, but i have some error i don't know how to resolve, following your code i was getting a null error so i started to fix it to run without disabling the null-safe mode as you can see on the repo: https://github.com/dabes/starter_flutter . but now i got this error and don't know how to proceed, if you could help me?
image

Hello Daniel, I will have a look at your repo and get back to you

dabes commented

Hello Santos, i managed to resolve, on menu_controller.dart on the line 7:

replaced:
static MenuController instance = Get.find();
with:
static MenuController instance = Get.put(MenuController());

Ty for your time.

Hello mate, sorry for getting back to you late, but I am glad you were able to find the error