Skip to main content

Fluent

Controls styled after Microsoft's Fluent Design, the design system of Windows, built on the Flutter fluent_ui package, plus the FluentIcons icon set.

A dashboard built with Fluent controls: a navigation pane, an info bar, cards with text boxes, a combo box, toggle switches, a calendar, progress indicators, list tiles and a number box

See the full source of this dashboard.

Usage​

Add flet-fluent-ui to your project dependencies:

uv add flet-fluent-ui

Then import it, typically under the fluent alias:

import flet as ft
import flet_fluent_ui as fluent


def main(page: ft.Page):
page.add(fluent.FilledButton("Continue"))


ft.run(main)
usage
A Fluent filled button

Theming​

The controls work without any setup. A control that is not inside a Theme uses Fluent's default blue accent color and follows the page's light or dark theme_mode.

To use another accent color, a fixed brightness or a different font, wrap controls in a Theme. Any color can be the accent color: the lighter and darker shades for hover and pressed states are derived from it.

fluent.Theme(
accent_color=ft.Colors.PURPLE,
content=ft.Column(
[fluent.FilledButton("Save"), fluent.ToggleSwitch(label="Notify me", value=True)]
),
)
theming
A purple accent color

Popups follow the Theme around the control that opens them, with one exception. The lists of DatePicker and TimePicker, the calendar of CalendarDatePicker and the menus of DropDownButton and SplitButton use the default blue accent color and the page's brightness.

Icons​

FluentIcons contains the Fluent icons. It can be used anywhere Flet accepts an icon, including core controls such as Icon and IconButton.

ft.Row(
tight=True,
controls=[
ft.Icon(fluent.FluentIcons.HOME),
ft.Icon(fluent.FluentIcons.ALERT, color=ft.Colors.AMBER),
ft.IconButton(fluent.FluentIcons.SETTINGS),
fluent.IconButton(fluent.FluentIcons.HEART),
],
)
icons
Fluent icons in core and Fluent controls

Available controls​