Skip to content

Configuration

Flet Material Library has many customized controls that can be used in your Flet-based applications. This section of the documentation will go through the steps to customize your app's theme, which will set the appropriate settings for the rest of the controls.

Setting the theme in your Flet application

Application setup

Before selecting your application theme color, make sure the following line of code is included in your main script:

fm.Theme.set_theme(theme="")

Choosing a theme color

Below you'll find all the supported theme colors offered Flet Material Library. Once you've decided on a theme, you can set it in your Flet application like this:

fm.Theme.set_theme(theme="indigo")

The theme argument is case sensitive - all colors names should be lower case and with spaces!

Red
Pink
Purple
Indigo
Blue
Light Blue
Cyan
Teal
Green
Lime
Yellow
Amber
Orange
Earth
Slate
Black
White

Now that you've set up your theme color, you can easily implement the controls you want inside your flet application. Visit each control page to get more details on their properties.