Flutter widgets and themes implementing the current macOS design language. It has been inspired by the macos_ui flutter package.
Features
A complete set of components (including some not bundled with the macos_ui package).
Resources
Usage
See the full example inside the /example
folder.
class _MyHomePageState extends State<MyHomePage> {
int pageIndex = 0;
@override
Widget build(BuildContext context) {
return PlatformMenuBar(
menus: const [],
child: AppKitWindow(
endSidebar: AppKitSidebar(
shownByDefault: false,
builder: (context, scrollController) {
return Container();
},
minWidth: 150),
sidebar: AppKitSidebar(
builder: (context, scrollController) {
return AppKitSidebarItems(
scrollController: scrollController,
itemSize: AppKitSidebarItemSize.large,
items: const [
AppKitSidebarItem(label: Text('Buttons'), disclosureItems: [
AppKitSidebarItem(label: Text('Push Button')),
AppKitSidebarItem(label: Text('Toggle Button')),
AppKitSidebarItem(label: Text('Combo Button')),
AppKitSidebarItem(label: Text('ComboBox Button')),
...
]),
],
currentIndex: pageIndex,
onChanged: (index) {
setState(() {
pageIndex = index;
});
});
},
minWidth: 200),
child: [
const PushButtonPage(),
...
][pageIndex],
),
);
}
}