pub struct ThemeData {Show 82 fields
pub apply_elevation_overlay_color: bool,
pub cupertino_override_theme: Option<NoDefaultCupertinoThemeData>,
pub extensions: IndexMap<TypeId, ThemeExtensionRef>,
pub adaptation_map: IndexMap<TypeId, AdaptationRef>,
pub input_decoration_theme: InputDecorationThemeData,
pub material_tap_target_size: MaterialTapTargetSize,
pub page_transitions_theme: PageTransitionsTheme,
pub platform: TargetPlatform,
pub scrollbar_theme: ScrollbarThemeData,
pub splash_factory: InteractiveInkFeatureFactoryRef,
pub use_material3: bool,
pub visual_density: VisualDensity,
pub canvas_color: Color,
pub card_color: Color,
pub color_scheme: ColorScheme,
pub disabled_color: Color,
pub divider_color: Color,
pub focus_color: Color,
pub highlight_color: Color,
pub hint_color: Color,
pub hover_color: Color,
pub primary_color: Color,
pub primary_color_dark: Color,
pub primary_color_light: Color,
pub scaffold_background_color: Color,
pub secondary_header_color: Color,
pub shadow_color: Color,
pub splash_color: Color,
pub unselected_widget_color: Color,
pub icon_theme: IconThemeData,
pub primary_icon_theme: IconThemeData,
pub primary_text_theme: TextTheme,
pub text_theme: TextTheme,
pub typography: Typography,
pub action_icon_theme: Option<ActionIconThemeData>,
pub app_bar_theme: AppBarThemeData,
pub badge_theme: BadgeThemeData,
pub banner_theme: MaterialBannerThemeData,
pub bottom_navigation_bar_theme: BottomNavigationBarThemeData,
pub bottom_sheet_theme: BottomSheetThemeData,
pub button_theme: ButtonThemeData,
pub card_theme: CardThemeData,
pub carousel_view_theme: CarouselViewThemeData,
pub checkbox_theme: CheckboxThemeData,
pub chip_theme: ChipThemeData,
pub data_table_theme: DataTableThemeData,
pub date_picker_theme: DatePickerThemeData,
pub dialog_theme: DialogThemeData,
pub divider_theme: DividerThemeData,
pub drawer_theme: DrawerThemeData,
pub dropdown_menu_theme: DropdownMenuThemeData,
pub elevated_button_theme: ElevatedButtonThemeData,
pub expansion_tile_theme: ExpansionTileThemeData,
pub filled_button_theme: FilledButtonThemeData,
pub floating_action_button_theme: FloatingActionButtonThemeData,
pub icon_button_theme: IconButtonThemeData,
pub list_tile_theme: ListTileThemeData,
pub menu_bar_theme: MenuBarThemeData,
pub menu_button_theme: MenuButtonThemeData,
pub menu_theme: MenuThemeData,
pub navigation_bar_theme: NavigationBarThemeData,
pub navigation_drawer_theme: NavigationDrawerThemeData,
pub navigation_rail_theme: NavigationRailThemeData,
pub outlined_button_theme: OutlinedButtonThemeData,
pub popup_menu_theme: PopupMenuThemeData,
pub progress_indicator_theme: ProgressIndicatorThemeData,
pub radio_theme: RadioThemeData,
pub search_bar_theme: SearchBarThemeData,
pub search_view_theme: SearchViewThemeData,
pub segmented_button_theme: SegmentedButtonThemeData,
pub slider_theme: SliderThemeData,
pub snack_bar_theme: SnackBarThemeData,
pub switch_theme: SwitchThemeData,
pub tab_bar_theme: TabBarThemeData,
pub text_button_theme: TextButtonThemeData,
pub text_selection_theme: TextSelectionThemeData,
pub time_picker_theme: TimePickerThemeData,
pub toggle_buttons_theme: ToggleButtonsThemeData,
pub tooltip_theme: TooltipThemeData,
pub button_bar_theme: ButtonBarThemeData,
pub dialog_background_color: Color,
pub indicator_color: Color,
}Expand description
Defines the configuration of the overall visual Theme for a MaterialApp
or a widget subtree within the app.
The MaterialApp theme property can be used to configure the appearance
of the entire app. Widget subtrees within an app can override the app’s
theme by including a Theme widget at the top of the subtree.
Widgets whose appearance should align with the overall theme can obtain the
current theme’s configuration with Theme::of. Material components typically
depend exclusively on the color_scheme and
text_theme. These properties are guaranteed to have non-null
values.
The static Theme::of method finds the ThemeData value specified for the
nearest BuildContext ancestor. This lookup is inexpensive, essentially
just a single HashMap access. It can sometimes be a little confusing
because Theme::of can not see a Theme widget that is defined in the
current build method’s context. To overcome that, create a new custom widget
for the subtree that appears below the new Theme, or insert a widget
that creates a new BuildContext, like Builder.
See https://material.io/design/color/ for more discussion on how to pick the right colors.
Dart’s factory constructor is ThemeData::builder; ThemeData.raw, which takes every
value exactly, is the struct literal.
Fields§
§apply_elevation_overlay_color: boolApply a semi-transparent overlay color on Material surfaces to indicate elevation for dark themes.
If use_material3 is true, then this flag is ignored as there
is a new Material.surfaceTintColor used to create an overlay for Material 3.
This flag is meant only for the Material 2 elevation overlay for dark
themes.
Material drop shadows can be difficult to see in a dark theme, so the
elevation of a surface should be portrayed with an “overlay” in addition
to the shadow. As the elevation of the component increases, the
overlay increases in opacity. apply_elevation_overlay_color
turns the application of this overlay on or off for dark themes.
If true and brightness is Brightness::Dark, a
semi-transparent version of ColorScheme.on_surface will be
applied on top of Material widgets that have a ColorScheme.surface
color. The level of transparency is based on Material.elevation as
per the Material Dark theme specification.
If false the surface color will be used unmodified.
Defaults to false in order to maintain backwards compatibility with
apps that were built before the Material Dark theme specification
was published. New apps should set this to true for any themes
where brightness is Brightness::Dark.
See also:
Material.elevation, which effects the level of transparency of the overlay color.ElevationOverlay.applyOverlay, which is used byMaterialto apply the overlay color to its surface color.- https://material.io/design/color/dark-theme.html, which specifies how the overlay should be applied.
cupertino_override_theme: Option<NoDefaultCupertinoThemeData>Components of the CupertinoThemeData to override from the Material
ThemeData adaptation.
By default, cupertino_override_theme is null and
Cupertino widgets descendant to the Material Theme will adhere to a CupertinoTheme
derived from the Material ThemeData. e.g. ThemeData’s ColorScheme
will also inform the CupertinoThemeData’s primary_color etc.
This cascading effect for individual attributes of the CupertinoThemeData
can be overridden using attributes of this
cupertino_override_theme.
extensions: IndexMap<TypeId, ThemeExtensionRef>Arbitrary additions to this theme.
To define extensions, pass one or more ThemeExtensions to
ThemeDataBuilder::extensions or ThemeDataCopyWith::extensions.
To obtain an extension, use extension.
See also:
extension, a convenience function for obtaining a specific extension.
adaptation_map: IndexMap<TypeId, AdaptationRef>A map which contains the adaptations for the theme. The entry’s key is the type of the adaptation; the value is the adaptation itself.
To obtain an adaptation, use get_adaptation.
input_decoration_theme: InputDecorationThemeDataThe default InputDecoration values for InputDecorator, TextField,
and TextFormField are based on this theme.
See InputDecoration::apply_defaults.
material_tap_target_size: MaterialTapTargetSizeConfigures the hit test size of certain Material widgets.
Defaults to a platform-appropriate size:
MaterialTapTargetSize::Padded on mobile platforms,
MaterialTapTargetSize::ShrinkWrap on desktop platforms.
page_transitions_theme: PageTransitionsThemeDefault MaterialPageRoute transitions per TargetPlatform.
MaterialPageRoute::build_transitions delegates to a platform
specific PageTransitionsBuilder. If a matching builder is not found, a builder whose
platform is null is used.
platform: TargetPlatformThe platform the material widgets should adapt to target.
Defaults to the current platform, as exposed by defaultTargetPlatform
(app.platform().target_platform()). This should be used in order to style UI
elements according to platform conventions.
Widgets from the material library should use this getter (via Theme::of)
to determine the current platform for the purpose of emulating the
platform behavior (e.g. scrolling or haptic effects). Widgets and render
objects at lower layers that try to emulate the underlying platform
can depend on defaultTargetPlatform directly, or may require
that the target platform be provided as an argument.
Determines the defaults for typography and
material_tap_target_size.
scrollbar_theme: ScrollbarThemeDataA theme for customizing the colors, thickness, and shape of Scrollbars.
splash_factory: InteractiveInkFeatureFactoryRefDefines the appearance of ink splashes produces by InkWell
and InkResponse.
See also:
InkSplash::splash_factory, which defines the default splash.InkRipple::splash_factory, which defines a splash that spreads out more aggressively than the default.InkSparkle::splash_factory, which defines a more aggressive and organic splash with sparkle effects.
use_material3: boolA temporary flag that can be used to opt-out of Material 3 features.
This flag is true by default. If false, then components will continue to use the colors, typography and other features of Material 2.
In the long run this flag will be deprecated and eventually only Material 3 will be supported. We recommend that applications migrate to Material 3 as soon as that’s practical. Until that migration is complete, this flag can be set to false.
§Defaults
If a ThemeData is constructed with use_material3 set to
true, then some properties will get updated defaults. However, the
ThemeData::copy_with method with use_material3 set to true will not
change any of these properties in the resulting ThemeData.
| Property | Material 3 default | Material 2 default |
|---|---|---|
| color_scheme | M3 baseline light color scheme | M2 baseline light color scheme |
| typography | Typography::material2021 | Typography::material2014 |
| splash_factory | InkSparkle* or InkRipple | InkSplash |
* if the target platform is Android and the app is not
running on the web, otherwise it will fallback to InkRipple.
If brightness is Brightness::Dark then the default color
scheme will be either the M3 baseline dark color scheme or the M2 baseline dark color
scheme depending on use_material3.
See also:
visual_density: VisualDensityThe density value for specifying the compactness of various UI components.
Density, in the context of a UI, is the vertical and horizontal “compactness” of the elements in the UI. It is unitless, since it means different things to different UI elements. For buttons, it affects the spacing around the centered label of the button. For lists, it affects the distance between baselines of entries in the list.
Typically, density values are integral, but any value in range may be
used. The range includes values from VisualDensity::MINIMUM_DENSITY (which
is -4), to VisualDensity::MAXIMUM_DENSITY (which is 4), inclusive, where
negative values indicate a denser, more compact, UI, and positive values
indicate a less dense, more expanded, UI. If a component doesn’t support
the value given, it will clamp to the nearest supported value.
The default for visual densities is zero for both vertical and horizontal densities, which corresponds to the default visual density of components in the Material Design specification.
As a rule of thumb, a change of 1 or -1 in density corresponds to 4 logical pixels. However, this is not a strict relationship since components interpret the density values appropriately for their needs.
A larger value translates to a spacing increase (less dense), and a smaller value translates to a spacing decrease (more dense).
In Material Design 3, the visual_density does not override
the default visual for the following components which are set to
VisualDensity::STANDARD for all platforms:
IconButton- To override the default value ofIconButton.visualDensity, useThemeData.iconButtonThemeinstead.Checkbox- To override the default value ofCheckbox.visualDensity, useThemeData.checkboxThemeinstead.
canvas_color: ColorThe default color of MaterialType.canvas Material.
card_color: ColorThe color of Material when it is used as a Card.
color_scheme: ColorSchemeA set of 45 colors based on the Material spec that can be used to configure the color properties of most components.
This property was added much later than the theme’s set of highly specific
colors, like card_color, canvas_color
etc. New components can be defined exclusively in terms of
color_scheme. Existing components will gradually migrate to
it, to the extent that is possible without significant backwards compatibility breaks.
disabled_color: ColorThe color used for widgets that are inoperative, regardless of their state. For example, a disabled checkbox (which may be checked or unchecked).
divider_color: ColorThe color of Dividers and PopupMenuDividers, also used
between ListTiles, between rows in DataTables, and so forth.
To create an appropriate BorderSide that uses this color, consider
Divider.createBorderSide.
focus_color: ColorThe focus color used indicate that a component has the input focus.
highlight_color: ColorThe highlight color used during ink splash animations or to indicate an item in a menu is selected.
hint_color: ColorThe color to use for hint text or placeholder text, e.g. in
TextField fields.
hover_color: ColorThe hover color used to indicate when a pointer is hovering over a component.
primary_color: ColorThe background color for major parts of the app (toolbars, tab bars, etc)
The theme’s color_scheme property contains
ColorScheme.primary, as well as a color that contrasts well with the primary color
called ColorScheme.on_primary. It might be simpler to just configure an app’s
visuals in terms of the theme’s color_scheme.
primary_color_dark: ColorA darker version of the primary_color.
primary_color_light: ColorA lighter version of the primary_color.
scaffold_background_color: ColorThe default color of the Material that underlies the Scaffold. The
background color for a typical material app or a page within the app.
secondary_header_color: ColorThe color of the header of a PaginatedDataTable when there are selected rows.
shadow_color: ColorThe color that the Material widget uses to draw elevation shadows.
Defaults to fully opaque black.
Shadows can be difficult to see in a dark theme, so the elevation of a
surface should be rendered with an “overlay” in addition to the shadow.
As the elevation of the component increases, the overlay increases in
opacity. The apply_elevation_overlay_color
property turns the elevation overlay on or off for dark themes.
splash_color: ColorThe color of ink splashes.
See also:
splashFactory, which defines the appearance of the splash.
unselected_widget_color: ColorThe color used for widgets in their inactive (but enabled)
state. For example, an unchecked checkbox. See also
disabled_color.
icon_theme: IconThemeDataAn icon theme that contrasts with the card and canvas colors.
primary_icon_theme: IconThemeDataAn icon theme that contrasts with the primary color.
primary_text_theme: TextThemeA text theme that contrasts with the primary color.
text_theme: TextThemeText with a color that contrasts with the card and canvas colors.
typography: TypographyThe color and geometry TextTheme values used to configure
text_theme.
Defaults to a platform-appropriate typography.
action_icon_theme: Option<ActionIconThemeData>A theme for customizing icons of BackButton, CloseButton, DrawerButton,
and EndDrawerButton.
app_bar_theme: AppBarThemeDataA theme for customizing the color, elevation, brightness, iconTheme and
textTheme of AppBars.
badge_theme: BadgeThemeDataA theme for customizing the color, shape, and size of a Badge.
A theme for customizing the color and text style of a MaterialBanner.
A theme for customizing the appearance and layout of BottomNavigationBar
widgets.
bottom_sheet_theme: BottomSheetThemeDataA theme for customizing the color, elevation, and shape of a bottom sheet.
Defines the default configuration of button widgets, like DropdownButton and
ButtonBar.
card_theme: CardThemeDataA theme for customizing the color, elevation, and shape of a Card.
This is the value returned from CardTheme::of.
carousel_view_theme: CarouselViewThemeDataA theme for customizing the visual properties of CarouselView.
checkbox_theme: CheckboxThemeDataA theme for customizing the appearance and layout of Checkbox widgets.
chip_theme: ChipThemeDataA theme for customizing the appearance and layout of Chip widgets.
This is the value returned from ChipTheme::of.
data_table_theme: DataTableThemeDataA theme for customizing the appearance and layout of DataTable widgets.
This is the value returned from DataTableTheme::of.
date_picker_theme: DatePickerThemeDataA theme for customizing the appearance and layout of DatePickerDialog widgets.
This is the value returned from DatePickerTheme::of.
dialog_theme: DialogThemeDataA theme for customizing the shape of a dialog.
divider_theme: DividerThemeDataA theme for customizing the appearance of Dividers,
VerticalDividers, dividers between ListTiles, and dividers between rows in
DataTables.
drawer_theme: DrawerThemeDataA theme for customizing the appearance and layout of Drawer widgets.
A theme for customizing the appearance and layout of DropdownMenu widgets.
A theme for customizing the appearance and internal layout of
ElevatedButtons.
expansion_tile_theme: ExpansionTileThemeDataA theme for customizing the visual properties of ExpansionTiles.
A theme for customizing the appearance and internal layout of
FilledButtons.
A theme for customizing the shape, elevation, and color of a
FloatingActionButton.
A theme for customizing the appearance and internal layout of
IconButtons.
list_tile_theme: ListTileThemeDataA theme for customizing the appearance of ListTile widgets.
A theme for customizing the color, shape, elevation, and other MenuStyle
aspects of the menu bar created by the MenuBar widget.
A theme for customizing the color, shape, elevation, and text style of
cascading menu buttons created by SubmenuButton or MenuItemButton.
A theme for customizing the color, shape, elevation, and other MenuStyle
attributes of menus created by the SubmenuButton widget.
A theme for customizing the background color, text style, and icon themes
of a NavigationBar.
A theme for customizing the background color, text style, and icon themes
of a NavigationDrawer.
A theme for customizing the background color, elevation, text style, and
icon themes of a NavigationRail.
A theme for customizing the appearance and internal layout of
OutlinedButtons.
A theme for customizing the color, shape, elevation, and text style of popup menus.
progress_indicator_theme: ProgressIndicatorThemeDataA theme for customizing the appearance and layout of ProgressIndicator widgets.
radio_theme: RadioThemeDataA theme for customizing the appearance and layout of Radio widgets.
search_bar_theme: SearchBarThemeDataA theme for customizing the appearance and layout of SearchBar widgets.
search_view_theme: SearchViewThemeDataA theme for customizing the appearance and layout of search views created by
SearchAnchor widgets.
A theme for customizing the appearance and layout of SegmentedButton widgets.
slider_theme: SliderThemeDataThe colors and shapes used to render Slider.
This is the value returned from SliderTheme::of.
snack_bar_theme: SnackBarThemeDataA theme for customizing colors, shape, elevation, and behavior of a SnackBar.
switch_theme: SwitchThemeDataA theme for customizing the appearance and layout of Switch widgets.
tab_bar_theme: TabBarThemeDataA theme for customizing the size, shape, and color of the tab bar indicator.
A theme for customizing the appearance and internal layout of
TextButtons.
text_selection_theme: TextSelectionThemeDataA theme for customizing the appearance for text selection in TextField and
SelectableText widgets.
time_picker_theme: TimePickerThemeDataA theme for customizing the appearance and layout of time pickers (showTimePicker).
Defines the default configuration of ToggleButtons widgets.
tooltip_theme: TooltipThemeDataA theme for customizing the appearance and layout of Tooltip widgets.
Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.
A theme for customizing the appearance and layout of ButtonBar widgets.
dialog_background_color: ColorUse DialogThemeData.backgroundColor instead. This feature was deprecated after v3.27.0-0.1.pre.
The background color of Dialog elements.
indicator_color: ColorUse TabBarThemeData.indicatorColor instead. This feature was deprecated after v3.28.0-1.0.pre.
The color of the selected tab indicator in a tab bar.
Implementations§
Source§impl ThemeData
impl ThemeData
Sourcepub fn builder() -> ThemeDataBuilder
pub fn builder() -> ThemeDataBuilder
Create a ThemeData that’s used to configure a Theme.
The color_scheme and text_theme are used
by the Material components to compute default values for visual properties. The API
documentation for each component widget explains exactly how the defaults are
computed.
When providing a ColorScheme, apps can either provide one directly with
the color_scheme parameter, or have one generated for them. A provided
color_scheme is used directly and is not affected by brightness,
color_scheme_seed, or contrast_level.
If a color_scheme_seed is provided, ColorScheme::from_seed generates the
color scheme from color_scheme_seed, brightness, and contrast_level.
In this case, contrast_level can be any value between -1.0 and 1.0
inclusive. All of the color scheme’s contrasting colors will meet
accessibility guidelines for readability. (See ColorScheme::from_seed for
more details.)
If color_scheme_seed is null, use brightness and contrast_level to
select a token-backed Material 3 baseline color scheme.
Use ContrastLevel::STANDARD, ContrastLevel::MEDIUM, or
ContrastLevel::HIGH to choose between the standard, medium, and high
contrast baselines. Other custom contrast_level values, such as 0.6,
require a color_scheme_seed.
If the app wants to customize a generated color scheme, it can use
ColorScheme::from_seed directly and then ColorScheme::copy_with on the
result to override any colors that need to be replaced. The result of
this can be used as the color_scheme directly.
For historical reasons, instead of using a color_scheme_seed or
color_scheme, you can provide either a primary_color or primary_swatch
to construct the color_scheme, but the results will not be as complete
as when using generation from a seed color.
If color_scheme_seed is non-null then color_scheme, primary_color and
primary_swatch must all be null.
The text_theme TextStyle colors are
black if the color scheme’s brightness is Brightness::Light, and white for
Brightness::Dark.
See also:
ThemeData::from, which creates a ThemeData from aColorScheme.ThemeData::light, which creates the default light theme.ThemeData::dark, which creates the default dark theme.ColorScheme::from_seed, which is used to create aColorSchemefrom a seed color.
Sourcepub fn from(color_scheme: ColorScheme) -> ThemeDataFromBuilder
pub fn from(color_scheme: ColorScheme) -> ThemeDataFromBuilder
Create a ThemeData based on the colors in the given color_scheme and
text styles of the optional text_theme.
If color_scheme.brightness is Brightness::Dark then
apply_elevation_overlay_color will be set to
true to support the Material dark theme method for indicating elevation by applying
a semi-transparent on_surface color on top of the surface color.
This is the recommended method to theme your application. As we move
forward we will be converting all the widget implementations to only use
colors or colors derived from those in ColorScheme.
See https://material.io/design/color/ for more discussion on how to pick the right colors.
Sourcepub fn light(app: &App, use_material3: Option<bool>) -> ThemeData
pub fn light(app: &App, use_material3: Option<bool>) -> ThemeData
A default light theme.
This theme does not contain text geometry. Instead, it is expected that
this theme is localized using text geometry using ThemeData::localize.
Sourcepub fn dark(app: &App, use_material3: Option<bool>) -> ThemeData
pub fn dark(app: &App, use_material3: Option<bool>) -> ThemeData
A default dark theme.
This theme does not contain text geometry. Instead, it is expected that
this theme is localized using text geometry using ThemeData::localize.
Sourcepub fn fallback(app: &App, use_material3: Option<bool>) -> ThemeData
pub fn fallback(app: &App, use_material3: Option<bool>) -> ThemeData
The default color theme. Same as ThemeData::light.
This is used by Theme::of when no theme has been specified.
This theme does not contain text geometry. Instead, it is expected that
this theme is localized using text geometry using ThemeData::localize.
Most applications would use Theme::of, which provides correct localized
text geometry.
Sourcepub fn get_adaptation<T: 'static>(&self) -> Option<&dyn Adaptation<T>>
pub fn get_adaptation<T: 'static>(&self) -> Option<&dyn Adaptation<T>>
Used to obtain a particular Adaptation from adaptation_map.
To get an adaptation, use Theme::of(app, context).get_adaptation::<MyAdaptation>().
Sourcepub fn brightness(&self) -> Brightness
pub fn brightness(&self) -> Brightness
The overall theme brightness.
The default TextStyle color for the
text_theme is black if the theme is constructed with
Brightness::Light and white if the theme is constructed with
Brightness::Dark.
Sourcepub fn extension<T: ThemeExtension>(&self) -> Option<&T>
pub fn extension<T: ThemeExtension>(&self) -> Option<&T>
Used to obtain a particular ThemeExtension from extensions.
Obtain with Theme::of(app, context).extension::<MyThemeExtension>().
Sourcepub fn copy_with(&self) -> ThemeDataCopyWith
pub fn copy_with(&self) -> ThemeDataCopyWith
Creates a copy of this theme but with the given fields replaced with the new values.
The brightness value is applied to the color_scheme.
Dart’s named arguments are the setters of the returned ThemeDataCopyWith, then
ThemeDataCopyWith::build.
Sourcepub fn localize(
app: &mut App,
base_theme: &Rc<ThemeData>,
local_text_geometry: &Rc<TextTheme>,
) -> Rc<ThemeData>
pub fn localize( app: &mut App, base_theme: &Rc<ThemeData>, local_text_geometry: &Rc<TextTheme>, ) -> Rc<ThemeData>
Returns a new theme built by merging the text geometry provided by the
local_text_geometry theme with the base_theme.
For those text styles in the base_theme whose TextStyle::inherit
is set to true, the returned theme’s text styles inherit the geometric properties
of local_text_geometry. The resulting text styles’ inherit is
set to those provided by local_text_geometry.
Sourcepub fn estimate_brightness_for_color(color: Color) -> Brightness
pub fn estimate_brightness_for_color(color: Color) -> Brightness
Determines whether the given Color is Brightness::Light or
Brightness::Dark.
This compares the luminosity of the given color to a threshold value that matches the Material Design specification.
Trait Implementations§
Source§impl Diagnosticable for ThemeData
impl Diagnosticable for ThemeData
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Object.runtimeType as diagnostics print it: the last segment of
the Rust type path, without generic arguments.Source§fn identity_hash(&self) -> u64
fn identity_hash(&self) -> u64
Object.hashCode as diagnostics print it: the object’s address.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Source§fn to_diagnostics_node(&self) -> DiagnosticableNode
fn to_diagnostics_node(&self) -> DiagnosticableNode
DiagnosticsNode::to_string_deep.Source§fn to_diagnostics_node_with(
&self,
name: Option<String>,
style: Option<DiagnosticsTreeStyle>,
) -> DiagnosticableNode
fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode
toDiagnosticsNode(name:, style:).Source§fn to_string(&self) -> String
fn to_string(&self) -> String
toString: a single-line description with properties and no
children. Read moreSource§fn to_string_at(&self, min_level: DiagnosticLevel) -> String
fn to_string_at(&self, min_level: DiagnosticLevel) -> String
toString(minLevel:).