Skip to content

SidebarItem with disclosureItems and leading widget places disclosure turn-down widget after leading widget  #268

@slewallen

Description

@slewallen

Description

On Mac OS, an outline view item with disclosure items places the disclosure turn-down before any icon for the outline view item. However, macos_ui is placing the leading icon before the turn-down icon.

See attached screenshot comparing what macos_ui is doing in comparison to actual Mac OS.

Steps To Reproduce

Modify the example at "https://pub.dev/packages/macos_ui/example" to include a leading widget for the Disclosure SidebarItem as such:

            SidebarItem(
              label: Text('Disclosure'),
              leading: MacosIcon(CupertinoIcons.alarm),
              disclosureItems: [
                SidebarItem(
                  leading: MacosIcon(CupertinoIcons.infinite),
                  label: Text('Colors'),
                ),
                SidebarItem(
                  leading: MacosIcon(CupertinoIcons.infinite),
                  label: Text('Item 3'),
                ),
              ],
            ),

Notice that the order is incorrect. For a correct example, see Mac OS Finder or Mac OS Mail.

Expected behavior

Order of disclosure turn-down and leading widget should be reversed. When a SidebarItem has disclosure items and a leading widget along with a label, it should be displayed as: "> 😀 Label" instead of "😀 > Label" in sidebar item.

Screenshots

Comparision of macos_ui and actual Mac OS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions