flutter_platform_widgets icon indicating copy to clipboard operation
flutter_platform_widgets copied to clipboard

Native macOS and windows widgets

Open MyBuzzTechnologies opened this issue 2 years ago • 3 comments

There are now packages to provide native style controls for macOS and Windows.

https://pub.dev/packages/macos_ui

https://pub.dev/packages/fluent_ui

It would be great if your package gave desktop native versions of switches, buttons, alert dialogs etc on those platforms too where possible rather than Material/Cupertino. It feels like a natural enhancement for your excellent package.

MyBuzzTechnologies avatar Apr 10 '22 07:04 MyBuzzTechnologies

I have explored a way to do this without having a dependency on these packages. One of the tenants of this library is that it will not have any transitive dependencies or rely on 3rd party packages. So to achieve this I have incorporated a custom widget builder pattern into each PlatformWidget which offloads the rendering outside of the library.

This is still a very much WIP but it would be possible to create a flutter_platform_widgets_macosui and flutter_platform_widgets_fluentui package that does depend on these 3rd Party libs and with this library as the interface.

With the v2.0 refresh I am working on documenting on how to do this, however I cannot commit to building the implementation of these new platform widget packages.

aqwert avatar Jun 07 '22 09:06 aqwert

@aqwert Any progress on this? any help needed?

esskar avatar Aug 08 '22 19:08 esskar

It would be great if this new custom widget builder would work with libadwaita as well so we can cover the Windows/Linux/MacOs trio

nu11ptr avatar Sep 21 '22 17:09 nu11ptr