Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default mode Extended. #7

Closed
zeeboydrummer opened this issue Jun 9, 2022 · 2 comments
Closed

Default mode Extended. #7

zeeboydrummer opened this issue Jun 9, 2022 · 2 comments

Comments

@zeeboydrummer
Copy link

Thank you for such a wonderful SideBar to begin with. For Flutter Web, this is one of the best sidebars I have found.
One of the features that would be great for web is the ability to choose the default toggle style for the Sidebar. I am building a dashboard where it would be apt to load the sidebar in extended mode. I tried but could not find the option.

Please see if a toggle option could be added to select the default load mode.

Appreciate all your help.

@Frezyx
Copy link
Owner

Frezyx commented Jun 11, 2022

Thank you for praising the library.
I don't fully understand you.
Can you give an example of what is needed ?

@maliksenpai
Copy link

SidebarX( controller: SidebarXController(selectedIndex: 0, extended: true), items: const [ SidebarXItem(icon: Icons.home, label: 'Home'), SidebarXItem(icon: Icons.search, label: 'Search'), ], ),

If your controller extended in initstate, it will be extended when open page as in the example.

@Frezyx Frezyx closed this as completed Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants