-
-
Notifications
You must be signed in to change notification settings - Fork 197
Description
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
