fluent_ui 1.2.1 copy "fluent_ui: ^1.2.1" to clipboard
fluent_ui: ^1.2.1 copied to clipboard

outdated

Implements Fluent Ui in flutter. Based on the official documentation

fluent_ui

Design beautiful native windows apps using Flutter

Unofficial implementation of Fluent UI for Flutter. It's written based on the official documentation

Motivation #

Since flutter has Windows support (currently in stable under an early release flag as of 11/03/2021), it's necessary to have support to its UI guidelines to build apps with fidelity, since it has support for Material and Cupertino. See this for more info on the offical fluent ui support

See also:

Roadmap #

Currently, we've only done the desktop part of the library, so you can import the library as one itself:

import 'package:fluent_ui/fluent_ui';

Note: this does not mean you can't use this library anywhere else. You can use it wherever you want

Futurely, once the desktop part of this library gets mature, web and mobile will also be supported. See also:

Also, futurely there will be a way to get the current device accent color. For more info, see accent color

Usage #

Inputs Preview Forms Preview

Style #

Learn more about Fluent Style

You can use the Theme widget to, well... theme your widgets. You can style your widgets in two ways:

  1. Using the FluentApp widget
FluentApp(
  title: 'MyApp',
  style: Style(
    ...
  ),
)
  1. Using the Theme widget
Theme(
  style: Style(
    ...
  ),
  child: ...,
),

Icons #

Icons Preview

Inside your app, you use icons to represent an action, such as copying text or navigating to the settings page. This library includes an icon library with it, so you can just call Icons.[icon_name] in any Icon widget:

Icon(Icons.add_regular)

To style icons, you can use IconStyle in the app Style or use the property style in the Icon widget. You can see the list of icons here

Colors #

This library also includes the Fluent UI colors with it, so you can just call Colors.[color_name]:

TextStyle(color: Colors.black)

Avaiable colors:

  • Colors.transparent
  • Colors.white
  • Colors.black
  • Colors.grey
  • Colors.yellow
  • Colors.orange
  • Colors.red
  • Colors.magenta
  • Colors.purple
  • Colors.blue
  • Colors.teal
  • Colors.green

Accent color

Common controls use an accent color to convey state information. By default, the accent color is Colors.blue. However, you can also customize your app's accent color to reflect your brand:

Style(
  accentColor: Colors.blue,
)

Learn more

Brightness #

You can change the style brightness to change the color of your app.

  1. Brightness.light Light theme
  2. Brightness.dark Dark theme

It defaults to the brightness of the device. (MediaQuery.of(context).brightness)

Typography #

To set a typography, you can use the Style class combined with the Typography class:

Style(
  typography: Typography(
    caption: TextStyle(
      fontSize: 12,
      color: Colors.black,
      fontWeight: FontWeight.normal,
    ),
  ),
)

Font

You should use one font throughout your app's UI, and we recommend sticking with the default font for Windows apps, Segoe UI. It's designed to maintain optimal legibility across sizes and pixel densities and offers a clean, light, and open aesthetic that complements the content of the system.

Learn more

Type ramp

The Windows type ramp establishes crucial relationships between the type styles on a page, helping users read content easily.

Type ramp

Learn more

Widgets: #

(1) = High priority
(2) = Medium priority
(3) = Low priority

NOTE: The code for all the images below can be found on the example folder

Widget Preview
Button Button Preview
Checkbox Checkbox Preview
RadioButton Radion Button Preview
✔️ Slider Slider Preview
ToggleButton
ToggleSwitch Toggle Switch Preview
(3) DropDownButton
SplitButton Split Button Preview
RatingControl Rating Preview

Forms:

Widget Preview
TextBox TextBox Preview
(3) Auto suggest box
(2) ComboBox

Overlays:

Widget Preview
Dialogs Dialog preview
(3) Flyouts
(3) Teaching tip
✔️ Tooltip Tooltip Preview

Navigation:

Widget Preview
Navigation View Navigation View preview
(3) Pivot
(3) TabView

Pickers:

Others:

Contribution #

Feel free to open an issue if you find an error or make pull requests.

All the widgets above with the mark of (3) will not be implemented soon, so you can create a pull request with the implementation for them :)

2885
likes
0
pub points
97%
popularity

Publisher

verified publisherbdlukaa.dev

Implements Fluent Ui in flutter. Based on the official documentation

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fluent_ui