Theme
Customizes the overall appearance of the application.
Properties
appbar_theme- Customizes the appearance of descendantAppBarcontrols.badge_theme- Customizes the appearance of descendantBadgecontrols.banner_theme- Customizes the appearance of descendantBannercontrols.bottom_appbar_theme- Customizes the appearance of descendantBottomAppBarcontrols.bottom_sheet_theme- Customizes the appearance of descendantBottomSheetcontrols.button_theme- Customizes the appearance of descendantButtoncontrols.canvas_color- The default color for canvas surfaces behind Material controls.card_bgcolor- The default background color forCardcontrols.card_theme- Customizes the appearance of descendantCardcontrols.checkbox_theme- Customizes the appearance of descendantCheckboxcontrols.chip_theme- Customizes the appearance of descendantChipcontrols.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 of descendantDataTablecontrols.date_picker_theme- Customizes the appearance of descendantDatePickercontrols.dialog_theme- Customizes the appearance of descendantAlertDialogcontrols.disabled_color- The color used for disabled controls and text.divider_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 of descendantDropdowncontrols.expansion_tile_theme- Customizes the appearance of descendantExpansionTilecontrols.filled_button_theme- Customizes the appearance of descendantFilledButtoncontrols.floating_action_button_theme- Customizes the appearance of descendantFloatingActionButtoncontrols.focus_color- The color used to indicate that a control has input focus.font_family- Overrides a default font for the app.highlight_color- The highlight color used during ink splash animations or to indicate a selected menu item.hint_color- The color used for hint or placeholder text, for example inTextFieldcontrols.hover_color- The color used to indicate that a pointer is hovering over a control.icon_button_theme- Customizes the appearance of descendantIconButtoncontrols.icon_theme- Customizes the appearance of descendantIconcontrols.list_tile_theme- Customizes the appearance of descendantListTilecontrols.navigation_bar_theme- Customizes the appearance of descendantNavigationBarcontrols.navigation_drawer_theme- Customizes the appearance of descendantNavigationDrawercontrols.navigation_rail_theme- Customizes the appearance of descendantNavigationRailcontrols.outlined_button_theme- Customizes the appearance of descendantOutlinedButtoncontrols.page_transitions- Configures the default page transition presets used for route changes.popup_menu_theme- Customizes the appearance of descendantPopupMenuButtoncontrols.primary_text_theme- A text theme that contrasts with the theme's primary color.progress_indicator_theme- Customizes the appearance of descendantProgressBarandProgressRingcontrols.radio_theme- Customizes the appearance of descendantRadiocontrols.scaffold_bgcolor- The default background color for scaffold-like page surfaces.scrollbar_theme- Customizes the appearance of descendant scrollbars.search_bar_theme- Customizes the appearance of descendantSearchBarcontrols.search_view_theme- Customizes the appearance of the search view presented bySearchBar.secondary_header_color- The color used for secondary headers, such as the header of a paginated data table when rows are selected.segmented_button_theme- Customizes the appearance of descendantSegmentedButtoncontrols.slider_theme- Customizes the appearance of descendantSliderandRangeSlidercontrols.snackbar_theme- Customizes the appearance of descendantSnackBarcontrols.splash_color- The color of ink splashes.switch_theme- Customizes the appearance of descendantSwitchcontrols.system_overlay_style- Customizes the appearance of the system status bar and navigation bar on mobile platforms.tab_bar_theme- Customizes the appearance of descendantTabBarcontrols.text_button_theme- Customizes the appearance of descendantTextButtoncontrols.text_theme- The default text styles for descendant controls.time_picker_theme- Customizes the appearance of descendantTimePickercontrols.tooltip_theme- Customizes the appearance of descendant tooltips.unselected_control_color- The color used for controls in their inactive but enabled state, such as an uncheckedCheckbox.use_material3- A temporary flag that can be used to opt-out of Material 3 features.visual_density- Specifies how compact descendant Material controls should be.
Properties
appbar_themeclass-attributeinstance-attribute
appbar_theme: AppBarTheme | None = NoneCustomizes the appearance of descendant AppBar controls.
badge_themeclass-attributeinstance-attribute
badge_theme: BadgeTheme | None = NoneCustomizes the appearance of descendant Badge controls.
banner_themeclass-attributeinstance-attribute
banner_theme: BannerTheme | None = NoneCustomizes the appearance of descendant Banner controls.
bottom_appbar_themeclass-attributeinstance-attribute
bottom_appbar_theme: BottomAppBarTheme | None = NoneCustomizes the appearance of descendant BottomAppBar controls.
bottom_sheet_themeclass-attributeinstance-attribute
bottom_sheet_theme: BottomSheetTheme | None = NoneCustomizes the appearance of descendant BottomSheet controls.
button_themeclass-attributeinstance-attribute
button_theme: ButtonTheme | None = NoneCustomizes the appearance of descendant Button controls.
canvas_colorclass-attributeinstance-attribute
canvas_color: ColorValue | None = NoneThe default color for canvas surfaces behind Material controls.
card_bgcolorclass-attributeinstance-attribute
card_bgcolor: ColorValue | None = NoneThe default background color for Card controls.
card_themeclass-attributeinstance-attribute
card_theme: CardTheme | None = NoneCustomizes the appearance of descendant Card controls.
checkbox_themeclass-attributeinstance-attribute
checkbox_theme: CheckboxTheme | None = NoneCustomizes the appearance of descendant Checkbox controls.
chip_themeclass-attributeinstance-attribute
chip_theme: ChipTheme | None = NoneCustomizes the appearance of descendant Chip controls.
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 descendant DataTable controls.
date_picker_themeclass-attributeinstance-attribute
date_picker_theme: DatePickerTheme | None = NoneCustomizes the appearance of descendant DatePicker controls.
dialog_themeclass-attributeinstance-attribute
dialog_theme: DialogTheme | None = NoneCustomizes the appearance of descendant AlertDialog controls.
disabled_colorclass-attributeinstance-attribute
disabled_color: ColorValue | None = NoneThe color used for disabled controls and text.
divider_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 descendant Dropdown controls.
expansion_tile_themeclass-attributeinstance-attribute
expansion_tile_theme: ExpansionTileTheme | None = NoneCustomizes the appearance of descendant ExpansionTile
controls.
filled_button_themeclass-attributeinstance-attribute
filled_button_theme: FilledButtonTheme | None = NoneCustomizes the appearance of descendant FilledButton controls.
floating_action_button_themeclass-attributeinstance-attribute
floating_action_button_theme: (
FloatingActionButtonTheme | None
) = NoneCustomizes the appearance of descendant FloatingActionButton
controls.
focus_colorclass-attributeinstance-attribute
focus_color: ColorValue | None = NoneThe color used to indicate that a control has input focus.
font_familyclass-attributeinstance-attribute
font_family: str | None = NoneOverrides a default font for the app.
highlight_colorclass-attributeinstance-attribute
highlight_color: ColorValue | None = NoneThe highlight color used during ink splash animations or to indicate a selected menu item.
hint_colorclass-attributeinstance-attribute
hint_color: ColorValue | None = NoneThe color used for hint or placeholder text, for example in
TextField controls.
hover_colorclass-attributeinstance-attribute
hover_color: ColorValue | None = NoneThe color used to indicate that a pointer is hovering over a control.
icon_button_themeclass-attributeinstance-attribute
icon_button_theme: IconButtonTheme | None = NoneCustomizes the appearance of descendant IconButton controls.
icon_themeclass-attributeinstance-attribute
icon_theme: IconTheme | None = NoneCustomizes the appearance of descendant Icon controls.
list_tile_themeclass-attributeinstance-attribute
list_tile_theme: ListTileTheme | None = NoneCustomizes the appearance of descendant ListTile controls.
navigation_bar_themeclass-attributeinstance-attribute
navigation_bar_theme: NavigationBarTheme | None = NoneCustomizes the appearance of descendant NavigationBar controls.
navigation_drawer_themeclass-attributeinstance-attribute
navigation_drawer_theme: NavigationDrawerTheme | None = NoneCustomizes the appearance of descendant NavigationDrawer
controls.
navigation_rail_themeclass-attributeinstance-attribute
navigation_rail_theme: NavigationRailTheme | None = NoneCustomizes the appearance of descendant NavigationRail controls.
outlined_button_themeclass-attributeinstance-attribute
outlined_button_theme: OutlinedButtonTheme | None = NoneCustomizes 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 = NoneCustomizes the appearance of descendant PopupMenuButton
controls.
primary_text_themeclass-attributeinstance-attribute
primary_text_theme: TextTheme | None = NoneA 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 = NoneCustomizes the appearance of descendant Radio controls.
scaffold_bgcolorclass-attributeinstance-attribute
scaffold_bgcolor: ColorValue | None = NoneThe default background color for scaffold-like page surfaces.
scrollbar_themeclass-attributeinstance-attribute
scrollbar_theme: ScrollbarTheme | None = NoneCustomizes the appearance of descendant scrollbars.
search_bar_themeclass-attributeinstance-attribute
search_bar_theme: SearchBarTheme | None = NoneCustomizes the appearance of descendant SearchBar controls.
search_view_themeclass-attributeinstance-attribute
search_view_theme: SearchViewTheme | None = NoneCustomizes the appearance of the search view presented by
SearchBar.
secondary_header_colorclass-attributeinstance-attribute
secondary_header_color: ColorValue | None = NoneThe 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 = NoneCustomizes the appearance of descendant SegmentedButton
controls.
slider_themeclass-attributeinstance-attribute
slider_theme: SliderTheme | None = NoneCustomizes the appearance of descendant Slider and
RangeSlider controls.
snackbar_themeclass-attributeinstance-attribute
snackbar_theme: SnackBarTheme | None = NoneCustomizes the appearance of descendant SnackBar controls.
splash_colorclass-attributeinstance-attribute
splash_color: ColorValue | None = NoneThe color of ink splashes.
switch_themeclass-attributeinstance-attribute
switch_theme: SwitchTheme | None = NoneCustomizes the appearance of descendant Switch controls.
system_overlay_styleclass-attributeinstance-attribute
system_overlay_style: SystemOverlayStyle | None = NoneCustomizes the appearance of the system status bar and navigation bar on mobile platforms.
tab_bar_themeclass-attributeinstance-attribute
tab_bar_theme: TabBarTheme | None = NoneCustomizes the appearance of descendant TabBar controls.
text_button_themeclass-attributeinstance-attribute
text_button_theme: TextButtonTheme | None = NoneCustomizes the appearance of descendant TextButton controls.
text_themeclass-attributeinstance-attribute
text_theme: TextTheme | None = NoneThe default text styles for descendant controls.
time_picker_themeclass-attributeinstance-attribute
time_picker_theme: TimePickerTheme | None = NoneCustomizes the appearance of descendant TimePicker controls.
tooltip_themeclass-attributeinstance-attribute
tooltip_theme: TooltipTheme | None = NoneCustomizes the appearance of descendant tooltips.
unselected_control_colorclass-attributeinstance-attribute
unselected_control_color: ColorValue | None = NoneThe color used for controls in their inactive but enabled state, such as an unchecked Checkbox.
use_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 = NoneSpecifies 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.