Theme
Customizes the overall appearance of the application.
Properties
appbar_themebadge_themebanner_themebottom_appbar_themebottom_sheet_themebutton_theme- Customizes the appearance ofButtonacross the app.canvas_colorcard_bgcolorcard_themecheckbox_themechip_theme- Customizes the appearance ofChipacross the app.color_scheme- Overrides the defaultColorSchemeused for the application.color_scheme_seed- Overrides the default color scheme seed used to generateColorScheme.data_table_theme- Customizes the appearance ofDataTableacross the app.date_picker_theme- Customizes the appearance ofDatePickeracross the app.dialog_theme- Customizes the appearance ofAlertDialogacross the app.disabled_colordivider_color- Overrides the default color of dividers used inDivider,VerticalDivider, dividers betweenListTiles, and dividers between rows inDataTable.divider_theme- Defines the visual properties ofDivider,VerticalDivider, dividers betweenListTiles, and dividers between rows inDataTable.dropdown_theme- Customizes the appearance ofDropdownacross the app.expansion_tile_theme- Customizes the appearance ofExpansionTileacross the app.filled_button_theme- Customizes the appearance ofFilledButtonacross the app.floating_action_button_theme- Customizes the appearance ofFloatingActionButtonacross the app.focus_colorfont_family- Overrides a default font for the app.highlight_colorhint_colorhover_coloricon_button_theme- Customizes the appearance ofIconButtonacross the app.icon_theme- Customizes the appearance ofIconacross the app.list_tile_theme- Customizes the appearance ofListTileacross the app.navigation_bar_themenavigation_drawer_themenavigation_rail_themeoutlined_button_theme- Customizes the appearance ofOutlinedButtonacross the app.page_transitionspopup_menu_themeprimary_text_themeprogress_indicator_themeradio_themescaffold_bgcolorscrollbar_themesearch_bar_themesearch_view_themesecondary_header_colorsegmented_button_themeslider_themesnackbar_themesplash_colorswitch_themesystem_overlay_styletab_bar_themetext_button_theme- Customizes the appearance ofTextButtonacross the app.text_themetime_picker_themetooltip_themeunselected_control_coloruse_material3- A temporary flag that can be used to opt-out of Material 3 features.visual_density
Properties
appbar_themeclass-attributeinstance-attribute
appbar_theme: AppBarTheme | None = Nonebadge_themeclass-attributeinstance-attribute
badge_theme: BadgeTheme | None = Nonebanner_themeclass-attributeinstance-attribute
banner_theme: BannerTheme | None = Nonebottom_appbar_themeclass-attributeinstance-attribute
bottom_appbar_theme: BottomAppBarTheme | None = Nonebottom_sheet_themeclass-attributeinstance-attribute
bottom_sheet_theme: BottomSheetTheme | None = Nonebutton_themeclass-attributeinstance-attribute
button_theme: ButtonTheme | None = NoneCustomizes the appearance of Button across the app.
canvas_colorclass-attributeinstance-attribute
canvas_color: ColorValue | None = Nonecard_bgcolorclass-attributeinstance-attribute
card_bgcolor: ColorValue | None = Nonecheckbox_themeclass-attributeinstance-attribute
checkbox_theme: CheckboxTheme | None = Nonechip_themeclass-attributeinstance-attribute
chip_theme: ChipTheme | None = NoneCustomizes the appearance of Chip across the app.
color_schemeclass-attributeinstance-attribute
color_scheme: ColorScheme | None = NoneOverrides the default ColorScheme used for the application.
color_scheme_seedclass-attributeinstance-attribute
color_scheme_seed: ColorValue | None = NoneOverrides the default color scheme seed used to generate
ColorScheme.
The default color is blue.
data_table_themeclass-attributeinstance-attribute
data_table_theme: DataTableTheme | None = NoneCustomizes the appearance of DataTable across the app.
date_picker_themeclass-attributeinstance-attribute
date_picker_theme: DatePickerTheme | None = NoneCustomizes the appearance of DatePicker across the app.
dialog_themeclass-attributeinstance-attribute
dialog_theme: DialogTheme | None = NoneCustomizes the appearance of AlertDialog across the app.
disabled_colorclass-attributeinstance-attribute
disabled_color: ColorValue | None = Nonedivider_colorclass-attributeinstance-attribute
divider_color: ColorValue | None = NoneOverrides 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 = NoneDefines the visual properties of Divider, VerticalDivider, dividers between ListTiles, and dividers between rows in DataTable.
dropdown_themeclass-attributeinstance-attribute
dropdown_theme: DropdownTheme | None = NoneCustomizes the appearance of Dropdown across the app.
expansion_tile_themeclass-attributeinstance-attribute
expansion_tile_theme: ExpansionTileTheme | None = NoneCustomizes the appearance of ExpansionTile across the app.
filled_button_themeclass-attributeinstance-attribute
filled_button_theme: FilledButtonTheme | None = NoneCustomizes the appearance of FilledButton across the app.
floating_action_button_themeclass-attributeinstance-attribute
floating_action_button_theme: (
FloatingActionButtonTheme | None
) = NoneCustomizes the appearance of FloatingActionButton
across the app.
focus_colorclass-attributeinstance-attribute
focus_color: ColorValue | None = Nonefont_familyclass-attributeinstance-attribute
font_family: str | None = NoneOverrides a default font for the app.
highlight_colorclass-attributeinstance-attribute
highlight_color: ColorValue | None = Nonehint_colorclass-attributeinstance-attribute
hint_color: ColorValue | None = Nonehover_colorclass-attributeinstance-attribute
hover_color: ColorValue | None = Noneicon_button_themeclass-attributeinstance-attribute
icon_button_theme: IconButtonTheme | None = NoneCustomizes the appearance of IconButton across the app.
icon_themeclass-attributeinstance-attribute
icon_theme: IconTheme | None = NoneCustomizes the appearance of Icon across the app.
list_tile_themeclass-attributeinstance-attribute
list_tile_theme: ListTileTheme | None = NoneCustomizes the appearance of ListTile across the app.
navigation_bar_themeclass-attributeinstance-attribute
navigation_bar_theme: NavigationBarTheme | None = Nonenavigation_drawer_themeclass-attributeinstance-attribute
navigation_drawer_theme: NavigationDrawerTheme | None = Nonenavigation_rail_themeclass-attributeinstance-attribute
navigation_rail_theme: NavigationRailTheme | None = Noneoutlined_button_themeclass-attributeinstance-attribute
outlined_button_theme: OutlinedButtonTheme | None = NoneCustomizes the appearance of OutlinedButton across the app.
page_transitionsclass-attributeinstance-attribute
page_transitions: PageTransitionsTheme = field(
default_factory=PageTransitionsTheme
)popup_menu_themeclass-attributeinstance-attribute
popup_menu_theme: PopupMenuTheme | None = Noneprogress_indicator_themeclass-attributeinstance-attribute
progress_indicator_theme: ProgressIndicatorTheme | None = (
None
)radio_themeclass-attributeinstance-attribute
radio_theme: RadioTheme | None = Nonescaffold_bgcolorclass-attributeinstance-attribute
scaffold_bgcolor: ColorValue | None = Nonescrollbar_themeclass-attributeinstance-attribute
scrollbar_theme: ScrollbarTheme | None = Nonesearch_bar_themeclass-attributeinstance-attribute
search_bar_theme: SearchBarTheme | None = Nonesearch_view_themeclass-attributeinstance-attribute
search_view_theme: SearchViewTheme | None = Nonesecondary_header_colorclass-attributeinstance-attribute
secondary_header_color: ColorValue | None = Nonesegmented_button_themeclass-attributeinstance-attribute
segmented_button_theme: SegmentedButtonTheme | None = Noneslider_themeclass-attributeinstance-attribute
slider_theme: SliderTheme | None = Nonesnackbar_themeclass-attributeinstance-attribute
snackbar_theme: SnackBarTheme | None = Nonesplash_colorclass-attributeinstance-attribute
splash_color: ColorValue | None = Noneswitch_themeclass-attributeinstance-attribute
switch_theme: SwitchTheme | None = Nonesystem_overlay_styleclass-attributeinstance-attribute
system_overlay_style: SystemOverlayStyle | None = Nonetab_bar_themeclass-attributeinstance-attribute
tab_bar_theme: TabBarTheme | None = Nonetext_button_themeclass-attributeinstance-attribute
text_button_theme: TextButtonTheme | None = NoneCustomizes the appearance of TextButton across the app.
time_picker_themeclass-attributeinstance-attribute
time_picker_theme: TimePickerTheme | None = Nonetooltip_themeclass-attributeinstance-attribute
tooltip_theme: TooltipTheme | None = Noneunselected_control_colorclass-attributeinstance-attribute
unselected_control_color: ColorValue | None = Noneuse_material3class-attributeinstance-attribute
use_material3: bool | None = NoneA temporary flag that can be used to opt-out of Material 3 features.
visual_densityclass-attributeinstance-attribute
visual_density: VisualDensity | None = None