Skip to main content

Theme

Customizes the overall appearance of the application.

Properties

Properties​

appbar_themeclass-attributeinstance-attribute​

appbar_theme: AppBarTheme | None = None

Customizes the appearance of descendant AppBar controls.

badge_themeclass-attributeinstance-attribute​

badge_theme: BadgeTheme | None = None

Customizes the appearance of descendant Badge controls.

banner_themeclass-attributeinstance-attribute​

banner_theme: BannerTheme | None = None

Customizes the appearance of descendant Banner controls.

bottom_appbar_themeclass-attributeinstance-attribute​

bottom_appbar_theme: BottomAppBarTheme | None = None

Customizes the appearance of descendant BottomAppBar controls.

bottom_sheet_themeclass-attributeinstance-attribute​

bottom_sheet_theme: BottomSheetTheme | None = None

Customizes the appearance of descendant BottomSheet controls.

button_themeclass-attributeinstance-attribute​

button_theme: ButtonTheme | None = None

Customizes the appearance of descendant Button controls.

canvas_colorclass-attributeinstance-attribute​

canvas_color: ColorValue | None = None

The default color for canvas surfaces behind Material controls.

card_bgcolorclass-attributeinstance-attribute​

card_bgcolor: ColorValue | None = None

The default background color for Card controls.

card_themeclass-attributeinstance-attribute​

card_theme: CardTheme | None = None

Customizes the appearance of descendant Card controls.

checkbox_themeclass-attributeinstance-attribute​

checkbox_theme: CheckboxTheme | None = None

Customizes the appearance of descendant Checkbox controls.

chip_themeclass-attributeinstance-attribute​

chip_theme: ChipTheme | None = None

Customizes the appearance of descendant Chip controls.

color_schemeclass-attributeinstance-attribute​

color_scheme: ColorScheme | None = None

Overrides the default ColorScheme used for the application.

color_scheme_seedclass-attributeinstance-attribute​

color_scheme_seed: ColorValue | None = None

Overrides the default color scheme seed used to generate ColorScheme. The default color is blue.

The seed drives accent colors. Surfaces are neutral unless surfaces is set to TONAL.

data_table_themeclass-attributeinstance-attribute​

data_table_theme: DataTableTheme | None = None

Customizes the appearance of descendant DataTable controls.

date_picker_themeclass-attributeinstance-attribute​

date_picker_theme: DatePickerTheme | None = None

Customizes the appearance of descendant DatePicker controls.

dialog_themeclass-attributeinstance-attribute​

dialog_theme: DialogTheme | None = None

Customizes the appearance of descendant AlertDialog controls.

disabled_colorclass-attributeinstance-attribute​

disabled_color: ColorValue | None = None

The color used for disabled controls and text.

divider_colorclass-attributeinstance-attribute​

divider_color: ColorValue | None = None

Overrides the default color of dividers used in Divider, VerticalDivider, dividers between ListTiles, and dividers between rows in DataTable.

divider_themeclass-attributeinstance-attribute​

divider_theme: DividerTheme | None = None

Defines the visual properties of Divider, VerticalDivider, dividers between ListTiles, and dividers between rows in DataTable.

dropdown_themeclass-attributeinstance-attribute​

dropdown_theme: DropdownTheme | None = None

Customizes the appearance of descendant Dropdown controls.

expansion_tile_themeclass-attributeinstance-attribute​

expansion_tile_theme: ExpansionTileTheme | None = None

Customizes the appearance of descendant ExpansionTile controls.

filled_button_themeclass-attributeinstance-attribute​

filled_button_theme: FilledButtonTheme | None = None

Customizes the appearance of descendant FilledButton controls.

floating_action_button_themeclass-attributeinstance-attribute​

floating_action_button_theme: (
    FloatingActionButtonTheme | None
) = None

Customizes the appearance of descendant FloatingActionButton controls.

focus_colorclass-attributeinstance-attribute​

focus_color: ColorValue | None = None

The color used to indicate that a control has input focus.

font_familyclass-attributeinstance-attribute​

font_family: str | None = None

Overrides a default font for the app.

highlight_colorclass-attributeinstance-attribute​

highlight_color: ColorValue | None = None

The highlight color used during ink splash animations or to indicate a selected menu item.

hint_colorclass-attributeinstance-attribute​

hint_color: ColorValue | None = None

The color used for hint or placeholder text, for example in TextField controls.

hover_colorclass-attributeinstance-attribute​

hover_color: ColorValue | None = None

The color used to indicate that a pointer is hovering over a control.

icon_button_themeclass-attributeinstance-attribute​

icon_button_theme: IconButtonTheme | None = None

Customizes the appearance of descendant IconButton controls.

icon_themeclass-attributeinstance-attribute​

icon_theme: IconTheme | None = None

Customizes the appearance of descendant Icon controls.

input_decoration_themeclass-attributeinstance-attribute​

input_decoration_theme: InputDecorationTheme | None = None

Customizes the decoration (border, label, hint, padding, fill) of descendant TextField and Dropdown controls.

list_tile_themeclass-attributeinstance-attribute​

list_tile_theme: ListTileTheme | None = None

Customizes the appearance of descendant ListTile controls.

markdown_themeclass-attributeinstance-attribute​

markdown_theme: MarkdownStyleSheet | None = None

The default style sheet of descendant Markdown controls.

A control's own md_style_sheet is applied on top of it, property by property. Unset properties fall back to defaults derived from the theme - links in the color scheme's primary, for example.

material_tap_target_sizeclass-attributeinstance-attribute​

material_tap_target_size: MaterialTapTargetSize | None = (
    None
)

The size of the tappable area of descendant Material controls (switches, checkboxes, radios, buttons, ...). SHRINK_WRAP drops the 48px minimum for dense, pointer-driven layouts. See MaterialTapTargetSize.

navigation_bar_themeclass-attributeinstance-attribute​

navigation_bar_theme: NavigationBarTheme | None = None

Customizes the appearance of descendant NavigationBar controls.

navigation_drawer_themeclass-attributeinstance-attribute​

navigation_drawer_theme: NavigationDrawerTheme | None = None

Customizes the appearance of descendant NavigationDrawer controls.

navigation_rail_themeclass-attributeinstance-attribute​

navigation_rail_theme: NavigationRailTheme | None = None

Customizes the appearance of descendant NavigationRail controls.

outlined_button_themeclass-attributeinstance-attribute​

outlined_button_theme: OutlinedButtonTheme | None = None

Customizes the appearance of descendant OutlinedButton controls.

page_transitionsclass-attributeinstance-attribute​

page_transitions: PageTransitionsTheme = field(
    default_factory=PageTransitionsTheme
)

Configures the default page transition presets used for route changes.

popup_menu_themeclass-attributeinstance-attribute​

popup_menu_theme: PopupMenuTheme | None = None

Customizes the appearance of descendant PopupMenuButton controls.

primary_text_themeclass-attributeinstance-attribute​

primary_text_theme: TextTheme | None = None

A text theme that contrasts with the theme's primary color.

progress_indicator_themeclass-attributeinstance-attribute​

progress_indicator_theme: ProgressIndicatorTheme | None = (
    None
)

Customizes the appearance of descendant ProgressBar and ProgressRing controls.

radio_themeclass-attributeinstance-attribute​

radio_theme: RadioTheme | None = None

Customizes the appearance of descendant Radio controls.

scaffold_bgcolorclass-attributeinstance-attribute​

scaffold_bgcolor: ColorValue | None = None

The default background color for scaffold-like page surfaces.

scrollbar_themeclass-attributeinstance-attribute​

scrollbar_theme: ScrollbarTheme | None = None

Customizes the appearance of descendant scrollbars.

search_bar_themeclass-attributeinstance-attribute​

search_bar_theme: SearchBarTheme | None = None

Customizes the appearance of descendant SearchBar controls.

search_view_themeclass-attributeinstance-attribute​

search_view_theme: SearchViewTheme | None = None

Customizes the appearance of the search view presented by SearchBar.

secondary_header_colorclass-attributeinstance-attribute​

secondary_header_color: ColorValue | None = None

The color used for secondary headers, such as the header of a paginated data table when rows are selected.

segmented_button_themeclass-attributeinstance-attribute​

segmented_button_theme: SegmentedButtonTheme | None = None

Customizes the appearance of descendant SegmentedButton controls.

slider_themeclass-attributeinstance-attribute​

slider_theme: SliderTheme | None = None

Customizes the appearance of descendant Slider and RangeSlider controls.

snackbar_themeclass-attributeinstance-attribute​

snackbar_theme: SnackBarTheme | None = None

Customizes the appearance of descendant SnackBar controls.

splash_colorclass-attributeinstance-attribute​

splash_color: ColorValue | None = None

The color of ink splashes.

surfacesclass-attributeinstance-attribute​

surfaces: ThemeSurfaces | None = None

How surface colors are derived from color_scheme_seed.

Defaults to NEUTRAL if None. Set it to TONAL for seed-tinted Material 3 surfaces.

switch_themeclass-attributeinstance-attribute​

switch_theme: SwitchTheme | None = None

Customizes the appearance of descendant Switch controls.

system_overlay_styleclass-attributeinstance-attribute​

system_overlay_style: SystemOverlayStyle | None = None

Customizes the appearance of the system status bar and navigation bar on mobile platforms.

tab_bar_themeclass-attributeinstance-attribute​

tab_bar_theme: TabBarTheme | None = None

Customizes the appearance of descendant TabBar controls.

text_button_themeclass-attributeinstance-attribute​

text_button_theme: TextButtonTheme | None = None

Customizes the appearance of descendant TextButton controls.

text_field_themeclass-attributeinstance-attribute​

text_field_theme: TextFieldTheme | None = None

Customizes descendant TextField controls.

text_themeclass-attributeinstance-attribute​

text_theme: TextTheme | None = None

The default text styles for descendant controls.

time_picker_themeclass-attributeinstance-attribute​

time_picker_theme: TimePickerTheme | None = None

Customizes the appearance of descendant TimePicker controls.

tooltip_themeclass-attributeinstance-attribute​

tooltip_theme: TooltipTheme | None = None

Customizes the appearance of descendant tooltips.

unselected_control_colorclass-attributeinstance-attribute​

unselected_control_color: ColorValue | None = None

The color used for controls in their inactive but enabled state, such as an unchecked Checkbox.

use_material3class-attributeinstance-attribute​

use_material3: bool | None = None

A temporary flag that can be used to opt-out of Material 3 features.

visual_densityclass-attributeinstance-attribute​

visual_density: VisualDensity | None = None

Specifies how compact descendant Material controls should be.

Negative density values make supported controls denser and more compact, while positive values make them more spacious. See VisualDensity.