appkit_ui_elements 0.0.8 copy "appkit_ui_elements: ^0.0.8" to clipboard
appkit_ui_elements: ^0.0.8 copied to clipboard

App Kit Ui Elements. Flutter widgets and themes implementing the current macOS design language. It was inspired by the great <a href='https://pub.dev/packages/macos_ui'>macos_ui</a> package.

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

[screenshot]

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],
      ),
    );
  }
}

5
likes
0
points
645
downloads

Publisher

unverified uploader

Weekly Downloads

App Kit Ui Elements. Flutter widgets and themes implementing the current macOS design language. It was inspired by the great <a href='https://pub.dev/packages/macos_ui'>macos_ui</a> package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

appkit_ui_element_colors, collection, dartz, equatable, flutter, gradient_borders, indexed, intl, macos_window_utils, plugin_platform_interface, rxdart, system_theme, uuid

More

Packages that depend on appkit_ui_elements