Frezyx / sidebarx

Flutter multiplatform navigation sidebar / side navigation bar / drawer widget

Home Page:https://pub.dev/packages/sidebarx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Labels not displayed

vd3d opened this issue · comments

Describe the bug
I have copy/paste the sample sidebar you provided into my application, but when I extend the side bar,
there is no label displayed. All the icons are centered, but no text.

I have try to change the colors, style etc... no way...
But if I use "extended:true" when creating the controller... the labels are displayed, but then it is extended (and I want it collapsed)

Do you have any idea of the problem?

PS: Notice it is under Windows, but I don't think that it is related.

I have the same problem. I obtained the width of the device through MediaQuery. of (context). size. width and decided whether to extend based on the device width. The code is as follows:
SidebarX( controller: _sidebarXController ..setExtended(MediaQuery.of(context).size.width < 800 ? false : true),);
But I found that sometimes when I change the width of the device, there is a problem where labels cannot be displayed, as shown in the following figure. But as the width changes, sometimes it can be displayed again. I think it is related to the AnimatedBuilder in SidebarXCell, but I was unable to identify the specific problem.
image
image