macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

Section header

Open agostinofiscale opened this issue 1 year ago • 2 comments

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.

image

What if we improve the sidebar by making it more modular and separating the components for their task?

Something like:

  1. SidebarItem
  2. SidebarFolder
  3. SidebarSection

btw thank you for your work! :)

agostinofiscale avatar Aug 17 '22 02:08 agostinofiscale

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 SidebarSections, which would each expect a List of SidebarItems. It would be tricky because there would be ListViews inside of ListViews, but maybe Slivers are the answer to that question 🤔

GroovinChip avatar Aug 20 '22 19:08 GroovinChip

Hello!

Any update about this feature? This issue was opened year ago but didn't see any progress.

Thanks for this amazing package.

iamaz007 avatar Nov 15 '23 02:11 iamaz007

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.

nu11ptr avatar Jun 29 '24 20:06 nu11ptr