Skip to main content

Theme

Theme class has the following properties:

appbar_theme​

Value is of type AppBarTheme.

badge_theme​

Value is of type BadgeTheme.

Value is of type BannerTheme.

bottom_appbar_theme​

Value is of type BottomAppBarTheme.

bottom_sheet_theme​

Value is of type BottomSheetTheme.

button_theme​

warning

This property is deprecated since v0.27.0 and will be removed in v0.30.0. Use elevated_button_theme, outlined_button_theme, text_button_theme, filled_button_theme or icon_button_theme instead.

Value is of type ButtonTheme.

canvas_color​

Value is of type ColorValue.

card_color​

Value is of type ColorValue.

card_theme​

Value is of type CardTheme.

checkbox_theme​

Value is of type CheckboxTheme.

chip_theme​

Value is of type ChipTheme.

color_scheme_seed​

A seed color to algorithmically derive the rest of theme colors from.

Value is of type ColorValue.

color_scheme​

Value is of type ColorScheme class that allows to customize Material colors scheme derived from color_scheme_seed.

elevated_button_theme​

Value is of type ElevatedButtonTheme.

date_picker_theme​

Value is of type DatePickerTheme.

dialog_bgcolor​

Value is of type ColorValue.

dialog_theme​

Value is of type DialogTheme.

disabled_color​

Value is of type ColorValue.

divider_color​

Value is of type ColorValue.

divider_theme​

Value is of type DividerTheme.

expansion_tile_theme​

Value is of type ExpansionTileTheme.

filled_button_theme​

Value is of type FilledButtonTheme.

focus_color​

Value is of type ColorValue.

font_family​

The base font for all UI elements.

highlight_color​

Value is of type ColorValue.

hint_color​

Value is of type ColorValue.

hover_color​

Value is of type ColorValue.

icon_button_theme​

Value is of type IconButtonTheme.

indicator_color​

Value is of type ColorValue.

list_tile_theme​

Value is of type ListTileTheme.

Value is of type NavigationBarTheme.

Value is of type NavigationDrawerTheme.

Value is of type NavigationRailTheme.

outlined_button_theme​

Value is of type OutlinedButtonTheme.

page_transitions​

Value is of type PageTransitionsTheme

primary_text_theme​

Describes a text theme that contrasts with the primary color.

Value is of type TextTheme.

Value is of type PopupMenuTheme.

primary_color​

Value is of type ColorValue.

primary_color_dark​

Value is of type ColorValue.

primary_color_light​

Value is of type ColorValue.

primary_swatch​

Value is of type ColorValue.

progress_indicator_theme​

Value is of type ProgressIndicatorTheme.

radio_theme​

Value is of type RadioTheme.

scaffold_bgcolor​

Value is of type ColorValue.

scrollbar_theme​

Value is of type ScrollbarTheme

search_bar_theme​

Value is of type SearchBarTheme.

search_view_theme​

Value is of type SearchViewTheme.

secondary_header_color​

Value is of type ColorValue.

segmented_button_theme​

Value is of type SegmentedButtonTheme.

shadow_color​

Value is of type ColorValue.

slider_theme​

Value is of type SliderTheme.

snackbar_theme​

Value is of type SnackBarTheme.

splash_color​

Value is of type ColorValue.

system_overlay_style​

Value is of type SystemOverlayStyle

switch_theme​

Value is of type SwitchTheme.

tabs_theme​

Value is of type TabsTheme

text_button_theme​

Value is of type TextButtonTheme.

text_theme​

Defines text styles that contrasts with the card and canvas colors.

Value is of type TextTheme.

time_picker_theme​

Value is of type TimePickerTheme.

tooltip_theme​

Value is of type TooltipTheme.

unselected_control_color​

Value is of type ColorValue.

use_material3​

Whether to use Material 3 design instead of Material 2.

Value is of type bool and defaults to True.

visual_density​

Value is of type VisualDensity.