Skip to main content

ThemeDataCopyWith

Struct ThemeDataCopyWith 

Source
pub struct ThemeDataCopyWith { /* private fields */ }
Expand description

Dart’s ThemeData.copyWith named arguments over the theme they copy; build applies brightness to the colour scheme, whichever order the two were given in.

Implementations§

Source§

impl ThemeDataCopyWith

Source

pub fn adaptations(self, adaptations: Vec<AdaptationRef>) -> ThemeDataCopyWith

Dart copyWith(adaptations:).

Source

pub fn apply_elevation_overlay_color( self, apply_elevation_overlay_color: bool, ) -> ThemeDataCopyWith

Dart copyWith(applyElevationOverlayColor:).

Source

pub fn cupertino_override_theme( self, cupertino_override_theme: NoDefaultCupertinoThemeData, ) -> ThemeDataCopyWith

Dart copyWith(cupertinoOverrideTheme:).

Source

pub fn extensions(self, extensions: Vec<ThemeExtensionRef>) -> ThemeDataCopyWith

Dart copyWith(extensions:).

Source

pub fn input_decoration_theme( self, input_decoration_theme: impl Into<InputDecorationThemeData>, ) -> ThemeDataCopyWith

Dart copyWith(inputDecorationTheme:), an InputDecorationThemeData or an InputDecorationTheme, whose data is kept.

Source

pub fn material_tap_target_size( self, material_tap_target_size: MaterialTapTargetSize, ) -> ThemeDataCopyWith

Dart copyWith(materialTapTargetSize:).

Source

pub fn page_transitions_theme( self, page_transitions_theme: PageTransitionsTheme, ) -> ThemeDataCopyWith

Dart copyWith(pageTransitionsTheme:).

Source

pub fn platform(self, platform: TargetPlatform) -> ThemeDataCopyWith

Dart copyWith(platform:).

Source

pub fn scrollbar_theme( self, scrollbar_theme: ScrollbarThemeData, ) -> ThemeDataCopyWith

Dart copyWith(scrollbarTheme:).

Source

pub fn splash_factory( self, splash_factory: InteractiveInkFeatureFactoryRef, ) -> ThemeDataCopyWith

Dart copyWith(splashFactory:).

Source

pub fn visual_density(self, visual_density: VisualDensity) -> ThemeDataCopyWith

Dart copyWith(visualDensity:).

Source

pub fn color_scheme(self, color_scheme: ColorScheme) -> ThemeDataCopyWith

Dart copyWith(colorScheme:).

Source

pub fn brightness(self, brightness: Brightness) -> ThemeDataCopyWith

Dart copyWith(brightness:).

Source

pub fn canvas_color(self, canvas_color: Color) -> ThemeDataCopyWith

Dart copyWith(canvasColor:).

Source

pub fn card_color(self, card_color: Color) -> ThemeDataCopyWith

Dart copyWith(cardColor:).

Source

pub fn disabled_color(self, disabled_color: Color) -> ThemeDataCopyWith

Dart copyWith(disabledColor:).

Source

pub fn divider_color(self, divider_color: Color) -> ThemeDataCopyWith

Dart copyWith(dividerColor:).

Source

pub fn focus_color(self, focus_color: Color) -> ThemeDataCopyWith

Dart copyWith(focusColor:).

Source

pub fn highlight_color(self, highlight_color: Color) -> ThemeDataCopyWith

Dart copyWith(highlightColor:).

Source

pub fn hint_color(self, hint_color: Color) -> ThemeDataCopyWith

Dart copyWith(hintColor:).

Source

pub fn hover_color(self, hover_color: Color) -> ThemeDataCopyWith

Dart copyWith(hoverColor:).

Source

pub fn primary_color(self, primary_color: Color) -> ThemeDataCopyWith

Dart copyWith(primaryColor:).

Source

pub fn primary_color_dark(self, primary_color_dark: Color) -> ThemeDataCopyWith

Dart copyWith(primaryColorDark:).

Source

pub fn primary_color_light( self, primary_color_light: Color, ) -> ThemeDataCopyWith

Dart copyWith(primaryColorLight:).

Source

pub fn scaffold_background_color( self, scaffold_background_color: Color, ) -> ThemeDataCopyWith

Dart copyWith(scaffoldBackgroundColor:).

Source

pub fn secondary_header_color( self, secondary_header_color: Color, ) -> ThemeDataCopyWith

Dart copyWith(secondaryHeaderColor:).

Source

pub fn shadow_color(self, shadow_color: Color) -> ThemeDataCopyWith

Dart copyWith(shadowColor:).

Source

pub fn splash_color(self, splash_color: Color) -> ThemeDataCopyWith

Dart copyWith(splashColor:).

Source

pub fn unselected_widget_color( self, unselected_widget_color: Color, ) -> ThemeDataCopyWith

Dart copyWith(unselectedWidgetColor:).

Source

pub fn icon_theme(self, icon_theme: IconThemeData) -> ThemeDataCopyWith

Dart copyWith(iconTheme:).

Source

pub fn primary_icon_theme( self, primary_icon_theme: IconThemeData, ) -> ThemeDataCopyWith

Dart copyWith(primaryIconTheme:).

Source

pub fn primary_text_theme( self, primary_text_theme: TextTheme, ) -> ThemeDataCopyWith

Dart copyWith(primaryTextTheme:).

Source

pub fn text_theme(self, text_theme: TextTheme) -> ThemeDataCopyWith

Dart copyWith(textTheme:).

Source

pub fn typography(self, typography: Typography) -> ThemeDataCopyWith

Dart copyWith(typography:).

Source

pub fn action_icon_theme( self, action_icon_theme: ActionIconThemeData, ) -> ThemeDataCopyWith

Dart copyWith(actionIconTheme:).

Source

pub fn app_bar_theme( self, app_bar_theme: impl Into<AppBarThemeData>, ) -> ThemeDataCopyWith

Dart copyWith(appBarTheme:).

Source

pub fn badge_theme(self, badge_theme: BadgeThemeData) -> ThemeDataCopyWith

Dart copyWith(badgeTheme:).

Source

pub fn banner_theme( self, banner_theme: MaterialBannerThemeData, ) -> ThemeDataCopyWith

Dart copyWith(bannerTheme:).

Source

pub fn bottom_navigation_bar_theme( self, bottom_navigation_bar_theme: BottomNavigationBarThemeData, ) -> ThemeDataCopyWith

Dart copyWith(bottomNavigationBarTheme:).

Source

pub fn bottom_sheet_theme( self, bottom_sheet_theme: BottomSheetThemeData, ) -> ThemeDataCopyWith

Dart copyWith(bottomSheetTheme:).

Source

pub fn button_theme(self, button_theme: ButtonThemeData) -> ThemeDataCopyWith

Dart copyWith(buttonTheme:).

Source

pub fn card_theme(self, card_theme: CardThemeData) -> ThemeDataCopyWith

Dart copyWith(cardTheme:).

Source

pub fn carousel_view_theme( self, carousel_view_theme: CarouselViewThemeData, ) -> ThemeDataCopyWith

Source

pub fn checkbox_theme( self, checkbox_theme: CheckboxThemeData, ) -> ThemeDataCopyWith

Dart copyWith(checkboxTheme:).

Source

pub fn chip_theme(self, chip_theme: ChipThemeData) -> ThemeDataCopyWith

Dart copyWith(chipTheme:).

Source

pub fn data_table_theme( self, data_table_theme: DataTableThemeData, ) -> ThemeDataCopyWith

Dart copyWith(dataTableTheme:).

Source

pub fn date_picker_theme( self, date_picker_theme: DatePickerThemeData, ) -> ThemeDataCopyWith

Dart copyWith(datePickerTheme:).

Source

pub fn dialog_theme(self, dialog_theme: DialogThemeData) -> ThemeDataCopyWith

Dart copyWith(dialogTheme:).

Source

pub fn divider_theme(self, divider_theme: DividerThemeData) -> ThemeDataCopyWith

Dart copyWith(dividerTheme:).

Source

pub fn drawer_theme(self, drawer_theme: DrawerThemeData) -> ThemeDataCopyWith

Dart copyWith(drawerTheme:).

Source

pub fn dropdown_menu_theme( self, dropdown_menu_theme: DropdownMenuThemeData, ) -> ThemeDataCopyWith

Dart copyWith(dropdownMenuTheme:).

Source

pub fn elevated_button_theme( self, elevated_button_theme: ElevatedButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(elevatedButtonTheme:).

Source

pub fn expansion_tile_theme( self, expansion_tile_theme: ExpansionTileThemeData, ) -> ThemeDataCopyWith

Dart copyWith(expansionTileTheme:).

Source

pub fn filled_button_theme( self, filled_button_theme: FilledButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(filledButtonTheme:).

Source

pub fn floating_action_button_theme( self, floating_action_button_theme: FloatingActionButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(floatingActionButtonTheme:).

Source

pub fn icon_button_theme( self, icon_button_theme: IconButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(iconButtonTheme:).

Source

pub fn list_tile_theme( self, list_tile_theme: ListTileThemeData, ) -> ThemeDataCopyWith

Dart copyWith(listTileTheme:).

Source

pub fn menu_bar_theme( self, menu_bar_theme: MenuBarThemeData, ) -> ThemeDataCopyWith

Dart copyWith(menuBarTheme:).

Source

pub fn menu_button_theme( self, menu_button_theme: MenuButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(menuButtonTheme:).

Source

pub fn menu_theme(self, menu_theme: MenuThemeData) -> ThemeDataCopyWith

Dart copyWith(menuTheme:).

Source

pub fn navigation_bar_theme( self, navigation_bar_theme: NavigationBarThemeData, ) -> ThemeDataCopyWith

Dart copyWith(navigationBarTheme:).

Source

pub fn navigation_drawer_theme( self, navigation_drawer_theme: NavigationDrawerThemeData, ) -> ThemeDataCopyWith

Dart copyWith(navigationDrawerTheme:).

Source

pub fn navigation_rail_theme( self, navigation_rail_theme: NavigationRailThemeData, ) -> ThemeDataCopyWith

Dart copyWith(navigationRailTheme:).

Source

pub fn outlined_button_theme( self, outlined_button_theme: OutlinedButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(outlinedButtonTheme:).

Source

pub fn popup_menu_theme( self, popup_menu_theme: PopupMenuThemeData, ) -> ThemeDataCopyWith

Dart copyWith(popupMenuTheme:).

Source

pub fn progress_indicator_theme( self, progress_indicator_theme: ProgressIndicatorThemeData, ) -> ThemeDataCopyWith

Dart copyWith(progressIndicatorTheme:).

Source

pub fn radio_theme(self, radio_theme: RadioThemeData) -> ThemeDataCopyWith

Dart copyWith(radioTheme:).

Source

pub fn search_bar_theme( self, search_bar_theme: SearchBarThemeData, ) -> ThemeDataCopyWith

Dart copyWith(searchBarTheme:).

Source

pub fn search_view_theme( self, search_view_theme: SearchViewThemeData, ) -> ThemeDataCopyWith

Dart copyWith(searchViewTheme:).

Source

pub fn segmented_button_theme( self, segmented_button_theme: SegmentedButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(segmentedButtonTheme:).

Source

pub fn slider_theme(self, slider_theme: SliderThemeData) -> ThemeDataCopyWith

Dart copyWith(sliderTheme:).

Source

pub fn snack_bar_theme( self, snack_bar_theme: SnackBarThemeData, ) -> ThemeDataCopyWith

Dart copyWith(snackBarTheme:).

Source

pub fn switch_theme(self, switch_theme: SwitchThemeData) -> ThemeDataCopyWith

Dart copyWith(switchTheme:).

Source

pub fn tab_bar_theme(self, tab_bar_theme: TabBarThemeData) -> ThemeDataCopyWith

Dart copyWith(tabBarTheme:).

Source

pub fn text_button_theme( self, text_button_theme: TextButtonThemeData, ) -> ThemeDataCopyWith

Dart copyWith(textButtonTheme:).

Source

pub fn text_selection_theme( self, text_selection_theme: TextSelectionThemeData, ) -> ThemeDataCopyWith

Dart copyWith(textSelectionTheme:).

Source

pub fn time_picker_theme( self, time_picker_theme: TimePickerThemeData, ) -> ThemeDataCopyWith

Dart copyWith(timePickerTheme:).

Source

pub fn toggle_buttons_theme( self, toggle_buttons_theme: ToggleButtonsThemeData, ) -> ThemeDataCopyWith

Dart copyWith(toggleButtonsTheme:).

Source

pub fn tooltip_theme(self, tooltip_theme: TooltipThemeData) -> ThemeDataCopyWith

Dart copyWith(tooltipTheme:).

Source

pub fn use_material3(self, use_material3: bool) -> ThemeDataCopyWith

👎Deprecated:

Use a ThemeData constructor (.from, .light, or .dark) instead. These constructors all have a useMaterial3 argument, and they set appropriate default values based on its value. See the useMaterial3 API documentation for full details. This feature was deprecated after v3.13.0-0.2.pre.

Dart copyWith(useMaterial3:).

Source

pub fn button_bar_theme( self, button_bar_theme: ButtonBarThemeData, ) -> ThemeDataCopyWith

👎Deprecated:

Use OverflowBar instead. This feature was deprecated after v3.21.0-10.0.pre.

Dart copyWith(buttonBarTheme:).

Source

pub fn dialog_background_color( self, dialog_background_color: Color, ) -> ThemeDataCopyWith

👎Deprecated:

Use DialogThemeData.backgroundColor instead. This feature was deprecated after v3.27.0-0.1.pre.

Dart copyWith(dialogBackgroundColor:).

Source

pub fn indicator_color(self, indicator_color: Color) -> ThemeDataCopyWith

👎Deprecated:

Use TabBarThemeData.indicatorColor instead. This feature was deprecated after v3.28.0-1.0.pre.

Dart copyWith(indicatorColor:).

Source

pub fn build(self) -> ThemeData

The copy.

Trait Implementations§

Source§

impl Clone for ThemeDataCopyWith

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ThemeDataCopyWith

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>