Home

Awesome

<div align="center"> <h1>fluent_ui</h1> <div> <a title="pub.dev" href="https://pub.dartlang.org/packages/fluent_ui" > <img src="https://img.shields.io/pub/v/fluent_ui.svg?style=flat-square&include_prereleases&color=dc143c" /> </a> <a title="GitHub License" href="https://github.com/bdlukaa/fluent_ui/blob/master/LICENSE"> <img src="https://img.shields.io/github/license/bdlukaa/fluent_ui?style=flat-square&color=f12253" /> </a> <a title="Made with Fluent Design" href="https://github.com/bdlukaa/fluent_ui"> <img src="https://img.shields.io/badge/fluent-design-blue?style=flat-square&color=gray&labelColor=0078D7"> </a> <a title="Web Example" href="https://bdlukaa.github.io/fluent_ui"> <img src="https://img.shields.io/badge/documentation---?style=flat-square&color=e88d0c" /> </a> </div> <div> <a title="Discord" href="https://discord.gg/674gpDQUVq"> <img src="https://img.shields.io/discord/809528329337962516?style=flat-square&label=discord&color=7289da&logo=discord&logoColor=white" /> </a> <a title="Patreon" href="https://www.patreon.com/bdlukaa"> <img src="https://img.shields.io/badge/sponsor-Patreon-FF424D?style=flat-square" /> </a> </div> <br/> <p> Design beautiful native Windows apps using <a href="https://flutter.dev">Flutter</a> </p> <p> Unofficial implementation of Fluent UI for <a href="https://flutter.dev">Flutter</a>. It's written based on the <a href="https://docs.microsoft.com/en-us/windows/uwp/design">official documentation</a>. </p> <h3> Read the <a href="https://bdlukaa.github.io/fluent_ui/">documentation</a> </h3> </div> <div align="center"> <a href="https://bdlukaa.github.io/fluent_ui"> <img src="https://raw.githubusercontent.com/bdlukaa/fluent_ui/master/images/example-showcase.png" /> </a> </div>

Content

Motivation and maintenance

Since Flutter has stable Windows support, it's necessary to have support to its UI guidelines to build apps with fidelity, the same way it has support for Material and Cupertino. See this for more info on the offical fluent ui support

See also:


This is an open-source package, which means that anyone can contribute to it. However, I, bdlukaa, am the only one actively maintaining it, so it may take some time to review and merge pull requests. If you want to support the project, you can become a patron:

<div align="center"> <a title="Patreon" href="https://www.patreon.com/bdlukaa"> <img src="https://img.shields.io/badge/sponsor-Patreon-FF424D?style=flat-square" /> </a> </div>

Installation

Add the package to your dependencies:

dependencies:
  fluent_ui: ^4.4.0
<p align="center">OR</p>
dependencies:
  fluent_ui:
    git: https://github.com/bdlukaa/fluent_ui.git

Finally, run dart pub get to download the package.

Projects using this library should use the stable channel of Flutter

Badge

Are you using this library on your app? You can use a badge to tell others:

<a title="Made with Fluent Design" href="https://github.com/bdlukaa/fluent_ui"> <img src="https://img.shields.io/badge/fluent-design-blue?style=flat-square&color=gray&labelColor=0078D7" > </a>

Add the following code to your README.md or to your website:

<a title="Made with Fluent Design" href="https://github.com/bdlukaa/fluent_ui">
  <img
    src="https://img.shields.io/badge/fluent-design-blue?style=flat-square&color=gray&labelColor=0078D7"
  />
</a>

Accent color

Common controls use an accent color to convey state information. Learn more.

By default, the accent color is Colors.blue. However, you can also customize your app's accent color to reflect your brand:

FluentThemeData(
  accentColor: Colors.blue,
)

To use the system's accent color, you can use the plugin system_theme made by me :). It has support for (as of 21/01/2023) Android, Web, MacOS, Windows, Xbox and Linux (GTK 3+).

import 'package:system_theme/system_theme.dart';

FluentThemeData(
  accentColor: SystemTheme.accentColor.accent.toAccentColor(),
)

Localization

FluentUI widgets currently supports out-of-the-box an wide number of languages, including:

If a language is not supported, your app may crash. You can add support for a new language or use a supported language. Learn more

Contribution

Feel free to file an issue if you find a problem or make pull requests.

All contributions are welcome :)

Contributing new localizations

In PR#216 we added support for new localizations in FluentUI Widgets.

If you want to contribute adding new localizations please follow this steps:

More about Localization in the Flutter Official Documentation

Acknowledgements

Irrespective of order, thanks to all the people below for contributing with the project. It means a lot to me :)