Santos-Enoque / flutter-web-dashboard-template

270 stars 202 forks source link

Question: Menucontroller() error #1

Closed dabes closed 3 years ago

dabes commented 3 years ago

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

Santos-Enoque commented 3 years ago

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

dabes commented 3 years ago

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.

Santos-Enoque commented 3 years ago

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