Open agostinofiscale opened 2 years ago
Hello @agostinofiscale! Thanks for the feature request.
Yes, this is certainly an improvement that should be made. Currently, SidebarItems
builds one ListView. Perhaps it would be prudent to make Sidebar
take a List of SidebarSection
s, which would each expect a List of SidebarItem
s. It would be tricky because there would be ListView
s inside of ListView
s, but maybe Slivers are the answer to that question 🤔
Hello!
Any update about this feature? This issue was opened year ago but didn't see any progress.
Thanks for this amazing package.
Are there any workarounds or clever hacks to get the same effect? I was going to do this manually with multiple sidebars, but it seems there is no current way to have an unselected sidebar, so both would have an item selected which obviously isn't right.
Use case
Section header are useful to divide different area in sidebar.
Proposal
In the following png you can see what I mean by saying "Section header", we could refacto the SidebarItem when there are disclosureItems but I think we can find ourself in a spaghetti plate.
What if we improve the sidebar by making it more modular and separating the components for their task?
Something like:
btw thank you for your work! :)