logo
pub struct ThemeData {
Show 80 fields pub brightness: Brightness, pub visual_density: VisualDensity, pub primary_swatch: MaterialColor, pub primary_color: Color, pub primary_color_brightness: Brightness, pub primary_color_light: Color, pub primary_color_dark: Color, pub accent_color: Color, pub accent_color_brightness: Brightness, pub canvas_color: Color, pub shadow_color: Color, pub scaffold_background_color: Color, pub bottom_app_bar_color: Color, pub card_color: Color, pub divider_color: Color, pub focus_color: Color, pub hover_color: Color, pub highlight_color: Color, pub splash_color: Color, pub splash_factory: InteractiveInkFeatureFactory, pub selected_row_color: Color, pub unselected_widget_color: Color, pub disabled_color: Color, pub button_color: Color, pub button_theme: ButtonThemeData, pub toggle_buttons_theme: ToggleButtonsThemeData, pub secondary_header_color: Color, pub text_selection_color: Color, pub cursor_color: Color, pub text_selection_handle_color: Color, pub background_color: Color, pub dialog_background_color: Color, pub indicator_color: Color, pub hint_color: Color, pub error_color: Color, pub toggleable_active_color: Color, pub font_family: String, pub text_theme: TextTheme, pub primary_text_theme: TextTheme, pub accent_text_theme: TextTheme, pub input_decoration_theme: InputDecorationTheme, pub icon_theme: IconThemeData, pub primary_icon_theme: IconThemeData, pub accent_icon_theme: IconThemeData, pub slider_theme: SliderThemeData, pub tab_bar_theme: TabBarTheme, pub tooltip_theme: TooltipThemeData, pub card_theme: CardTheme, pub chip_theme: ChipThemeData, pub platform: TargetPlatform, pub material_tap_target_size: MaterialTapTargetSize, pub apply_elevation_overlay_color: bool, pub page_transitions_theme: PageTransitionsTheme, pub app_bar_theme: AppBarTheme, pub scrollbar_theme: ScrollbarThemeData, pub bottom_app_bar_theme: BottomAppBarTheme, pub color_scheme: ColorScheme, pub dialog_theme: DialogTheme, pub floating_action_button_theme: FloatingActionButtonThemeData, pub navigation_rail_theme: NavigationRailThemeData, pub typography: Typography, pub snack_bar_theme: SnackBarThemeData, pub bottom_sheet_theme: BottomSheetThemeData, pub popup_menu_theme: PopupMenuThemeData, pub banner_theme: MaterialBannerThemeData, pub divider_theme: DividerThemeData, pub button_bar_theme: ButtonBarThemeData, pub bottom_navigation_bar_theme: BottomNavigationBarThemeData, pub time_picker_theme: TimePickerThemeData, pub text_button_theme: TextButtonThemeData, pub elevated_button_theme: ElevatedButtonThemeData, pub outlined_button_theme: OutlinedButtonThemeData, pub text_selection_theme: TextSelectionThemeData, pub data_table_theme: DataTableThemeData, pub checkbox_theme: CheckboxThemeData, pub radio_theme: RadioThemeData, pub switch_theme: SwitchThemeData, pub progress_indicator_theme: ProgressIndicatorThemeData, pub fix_text_field_outline_label: bool, pub use_text_selection_theme: bool,
}

Fields

brightness: Brightnessvisual_density: VisualDensityprimary_swatch: MaterialColorprimary_color: Colorprimary_color_brightness: Brightnessprimary_color_light: Colorprimary_color_dark: Coloraccent_color: Coloraccent_color_brightness: Brightnesscanvas_color: Colorshadow_color: Colorscaffold_background_color: Colorbottom_app_bar_color: Colorcard_color: Colordivider_color: Colorfocus_color: Colorhover_color: Colorhighlight_color: Colorsplash_color: Colorsplash_factory: InteractiveInkFeatureFactoryselected_row_color: Colorunselected_widget_color: Colordisabled_color: Colorbutton_color: Colorbutton_theme: ButtonThemeDatatoggle_buttons_theme: ToggleButtonsThemeDatasecondary_header_color: Colortext_selection_color: Colorcursor_color: Colortext_selection_handle_color: Colorbackground_color: Colordialog_background_color: Colorindicator_color: Colorhint_color: Colorerror_color: Colortoggleable_active_color: Colorfont_family: Stringtext_theme: TextThemeprimary_text_theme: TextThemeaccent_text_theme: TextThemeinput_decoration_theme: InputDecorationThemeicon_theme: IconThemeDataprimary_icon_theme: IconThemeDataaccent_icon_theme: IconThemeDataslider_theme: SliderThemeDatatab_bar_theme: TabBarThemetooltip_theme: TooltipThemeDatacard_theme: CardThemechip_theme: ChipThemeDataplatform: TargetPlatformmaterial_tap_target_size: MaterialTapTargetSizeapply_elevation_overlay_color: boolpage_transitions_theme: PageTransitionsThemeapp_bar_theme: AppBarThemescrollbar_theme: ScrollbarThemeDatabottom_app_bar_theme: BottomAppBarThemecolor_scheme: ColorSchemedialog_theme: DialogThemefloating_action_button_theme: FloatingActionButtonThemeDatanavigation_rail_theme: NavigationRailThemeDatatypography: Typographysnack_bar_theme: SnackBarThemeDatabottom_sheet_theme: BottomSheetThemeDatapopup_menu_theme: PopupMenuThemeDatabanner_theme: MaterialBannerThemeDatadivider_theme: DividerThemeDatabutton_bar_theme: ButtonBarThemeDatabottom_navigation_bar_theme: BottomNavigationBarThemeDatatime_picker_theme: TimePickerThemeDatatext_button_theme: TextButtonThemeDataelevated_button_theme: ElevatedButtonThemeDataoutlined_button_theme: OutlinedButtonThemeDatatext_selection_theme: TextSelectionThemeDatadata_table_theme: DataTableThemeDatacheckbox_theme: CheckboxThemeDataradio_theme: RadioThemeDataswitch_theme: SwitchThemeDataprogress_indicator_theme: ProgressIndicatorThemeDatafix_text_field_outline_label: booluse_text_selection_theme: bool

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.