Santos-Enoque / flutter-web-dashboard-template

270 stars 202 forks source link

Side Menu itens not working. #15

Open ClicknetTelecom opened 2 years ago

ClicknetTelecom commented 2 years ago

I was following the tutorial to the best i could, but i cant make the side menu itens work this is my repo link, please halp

https://github.com/ClicknetTelecom/flutter-web-course-2021-flutter-dashboard

rrv-rafael commented 2 years ago

I believe I had the same problem as you. I looked at the Santos repository and noticed that in the file "large_screen.dart", inside expanded's child, it is necessary to put the "SideMenu()", so it worked.

ReMoReG commented 2 years ago

Hello, have you faces a problem about the key.currentState.openDrawer() ;

The Error disappear when I add ! or ? on currentState, but the side menu won't appear and only the logo pops out, have you faces this problem sir?

rrv-rafael commented 2 years ago

Hello, sorry for the delay.

No, I don't face this problem, could you send me your complete code?

3rigx commented 2 years ago

I'm having a problem with the sidebar aswell could you help me look at my code?

hostusservices commented 2 years ago

side menu not working image

image

Another exception was thrown: type 'String' is not a 'bool' in boolean expression here is my repo link https://github.com/hostusservices/flutter_dashboard.git

please help me urjently

rrv-rafael commented 2 years ago

Hello @hostusservices!

In menu_controller.dart file in isActive and isHovering methods, you are using "=" but should use "==" as below:

isActive(String itemName) => activeItem.value == itemName;

isHovering(String itemName) => hoverItem.value == itemName;

Replacing the "=" with "==" will work.

And in the layout.dart file, inside the Drawer(), it should be as follows:

drawer: Drawer( child: SideMenu(), ),

Hope this helps.

Hugs.

rrv-rafael commented 2 years ago

Hello @3rigx.

Send here the repository link and the error image please.

Hugs.

hostusservices commented 2 years ago

thanks a lot sir its worked image

image

rrv-rafael commented 2 years ago

That's great =D

vedantsinh commented 2 years ago

https://github.com/vedantsinh/amin_panel image

side menu error!!!

AKA-LinCoder commented 2 years ago

https://github.com/vedantsinh/amin_panel 图片

侧边菜单错误!!!

all onTap in project change Function to VoidCallback,it work for me

mvagravante commented 1 year ago

image image

Good day, I'm having this issue in my Side Menu and I can't figure out where to locate the error. Thank You!

AKA-LinCoder commented 1 year ago

nfg

Wise10673226 commented 1 year ago

I have the same issue please can anyone help me,