An open API service indexing awesome lists of open source software.

https://github.com/sephiroth74/appkit_ui_elements

AppKit Ui Elements for Flutter (based on macos_ui)
https://github.com/sephiroth74/appkit_ui_elements

Last synced: 10 months ago
JSON representation

AppKit Ui Elements for Flutter (based on macos_ui)

Awesome Lists containing this project

README

          

Flutter widgets and themes implementing the current macOS design language. It has been inspired by the macos_ui flutter package.

![popup buttons](./pages/images/screenshot-001.png)

![sliders](./pages/images/screenshot-002.png)

![date time pickers](./pages/images/screenshot-003.png)

## Features

A complete set of components (including some not bundled with the macos_ui package).

## Resources

* Apple Design Resources

## Usage

See the full example inside the `/example` folder.

```dart

class _MyHomePageState extends State {
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],
),
);
}
}

```