Results for “Theme”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
API reference
- Themeclass
Applies a theme to descendant widgets. material.Theme Theme Theme class material
- ThemeDataTweenclass
interpolation between two ThemeDatas. material.ThemeDataTween ThemeDataTween Theme Data Tween class material
- ThemeExtensionclass
interface that defines custom additions to a ThemeData object. material.ThemeExtension ThemeExtension Theme Extension class material
- ThemeDataclass
Theme for a MaterialApp or a widget subtree within the app. material.ThemeData ThemeData Theme Data class material
- ThemeData.fallbackconstructor
default color theme. Same as ThemeData.light. material.ThemeData.ThemeData.fallback ThemeData fallback Theme Data.fallback constructor material
- ThemeData.newconstructor
Create a ThemeData that's used to configure a Theme. material.ThemeData.ThemeData.new ThemeData new Theme Data.new constructor material
- ThemeData.lightconstructor
default light theme. material.ThemeData.ThemeData.light ThemeData light Theme Data.light constructor material
- ThemeData.darkconstructor
default dark theme. material.ThemeData.ThemeData.dark ThemeData dark Theme Data.dark constructor material
- ThemeDataTween.newconstructor
Creates a ThemeData tween. material.ThemeDataTween.ThemeDataTween.new ThemeDataTween new Theme Data Tween.new constructor material
- Theme.newconstructor
Applies the given theme data to child. material.Theme.Theme.new Theme new Theme.new constructor material
- ThemeData.fromconstructor
Create a ThemeData based on the colors in the given colorScheme and text styles of the optional textTheme. material.ThemeData.ThemeData.from ThemeData from Theme Data.from constructor material
- ThemeData.rawconstructor
Create a ThemeData given a set of exact values. Most values must be specified. They all must also be non-null except for cupertinoOverrideTheme, and deprecated members. material.ThemeData.ThemeData.raw
- ThemeExtension.newconstructor
Enable const constructor for subclasses. material.ThemeExtension.ThemeExtension.new ThemeExtension new Theme Extension.new constructor material
- CupertinoBasedMaterialThemeDataclass
class for creating a Material theme with a color scheme based off of the colors from a CupertinoThemeData. This is intended to be used only
- MaterialBasedCupertinoThemeDataclass
CupertinoThemeData that defers unspecified theme attributes to an upstream Material ThemeData. material.MaterialBasedCupertinoThemeData MaterialBasedCupertinoThemeData Material Based Cupertino Theme Data class material
- FilledButtonThemeDataclass
when it's used with FilledButtonTheme or with the overall Theme's ThemeData.filledButtonTheme. material.FilledButtonThemeData FilledButtonThemeData Filled Button Theme Data class material
- OutlinedButtonThemeDataclass
when it's used with OutlinedButtonTheme or with the overall Theme's ThemeData.outlinedButtonTheme. material.OutlinedButtonThemeData OutlinedButtonThemeData Outlined Button Theme Data class material
- TextButtonThemeDataclass
when it's used with TextButtonTheme or with the overall Theme's ThemeData.textButtonTheme. material.TextButtonThemeData TextButtonThemeData Text Button Theme Data class material
- ElevatedButtonThemeDataclass
when it's used with ElevatedButtonTheme or with the overall Theme's ThemeData.elevatedButtonTheme. material.ElevatedButtonThemeData ElevatedButtonThemeData Elevated Button Theme Data class material
- MultiPreviewThemeDataclass
PreviewThemeData that applies multiple themes in sequence, where the first theme in the list is the outermost wrapper. widget_previews.MultiPreviewThemeData MultiPreviewThemeData Multi Preview Theme Data class
- IconButtonThemeDataclass
used with the IconButton, the IconButtonTheme or the overall Theme's ThemeData.iconButtonTheme. material.IconButtonThemeData IconButtonThemeData Icon Button Theme Data class material
- AnimatedThemeclass
Animated version of Theme which automatically transitions the colors, etc, over a given duration whenever the given theme changes. material.AnimatedTheme AnimatedTheme Animated Theme class material
- ActionIconThemeDataclass
BackButton, CloseButton, DrawerButton, and EndDrawerButton with ActionIconTheme.of or the overall Theme's ThemeData.actionIconTheme. material.ActionIconThemeData ActionIconThemeData Action Icon Theme Data class material
- CardTheme.newconstructor
Creates a theme that can be used for ThemeData.cardTheme. material.CardTheme.CardTheme.new CardTheme new Card Theme.new constructor material
- ScrollbarThemeData.newconstructor
Creates a theme that can be used for ThemeData.scrollbarTheme. material.ScrollbarThemeData.ScrollbarThemeData.new ScrollbarThemeData new Scrollbar Theme Data.new constructor material
- RadioThemeData.newconstructor
Creates a theme that can be used for ThemeData.radioTheme. material.RadioThemeData.RadioThemeData.new RadioThemeData new Radio Theme Data.new constructor material
- SwitchThemeData.newconstructor
Creates a theme that can be used for ThemeData.switchTheme. material.SwitchThemeData.SwitchThemeData.new SwitchThemeData new Switch Theme Data.new constructor material
- AppBarTheme.newconstructor
Creates a theme that can be used for ThemeData.appBarTheme. material.AppBarTheme.AppBarTheme.new AppBarTheme new App Bar Theme.new constructor material
- CardThemeData.newconstructor
Creates a theme that can be used for ThemeData.cardTheme. material.CardThemeData.CardThemeData.new CardThemeData new Card Theme Data.new constructor material
- DialogTheme.newconstructor
Creates a dialog theme that can be used for ThemeData.dialogTheme. material.DialogTheme.DialogTheme.new DialogTheme new Dialog Theme.new constructor material
- CheckboxThemeData.newconstructor
Creates a theme that can be used for ThemeData.checkboxTheme. material.CheckboxThemeData.CheckboxThemeData.new CheckboxThemeData new Checkbox Theme Data.new constructor material
- BottomSheetThemeData.newconstructor
Creates a theme that can be used for ThemeData.bottomSheetTheme. material.BottomSheetThemeData.BottomSheetThemeData.new BottomSheetThemeData new Bottom Sheet Theme Data.new constructor material
- SearchViewThemeData.newconstructor
Creates a theme that can be used for ThemeData.searchViewTheme. material.SearchViewThemeData.SearchViewThemeData.new SearchViewThemeData new Search View Theme Data.new constructor material
Version changes
- ThemeData's accent properties have been deprecated2.5.0deprecated
ThemeData accentColor, accentColorBrightness, accentIconTheme and accentTextTheme properties have been deprecated. The ThemeData accentColor, accentColorBrightness, accentIconTheme and accentTextTheme properties have been deprecated because the Material library no longer uses
- Component theme normalization updates3.35.0breaking
these for a more consistent theming experience in the material library. In `ThemeData`: - The type of the `appBarTheme` property has been changed from `AppBarTheme` to `AppBarThemeData
- ThemeData's toggleableActiveColor property has been deprecated3.7.0deprecated
SwitchListTile`, `Checkbox`, `CheckboxListTile`, `Radio`, `RadioListTile` now use `ColorScheme.secondary` color for their toggleable widget. `ThemeData.toggleableActiveColor` is deprecated and will eventually be removed. The widgets using `ThemeData.toggleableActiveColor` color
- Material Theme System Updates3.32.0breaking
overrides for the defaults of the component visual properties. Previously, the type of `ThemeData.cardTheme` was `Object?` to accept both `CardTheme` and `CardThemeData`. Now that the type has been
- Deprecate ThemeData.indicatorColor in favor of TabBarThemeData.indicatorColor3.32.0deprecated
ThemeData.indicatorColor` parameter was deprecated in favor of the `TabBarThemeData.indicatorColor` parameter. The `ThemeData.indicatorColor` is deprecated in favor of a component-specific theme. Use `TabBarThemeData` to override the default
- Component theme normalization3.27.0breaking
these for a more consistent theming experience in the material library. In `ThemeData`: - The type of the `cardTheme` property has been changed from `CardTheme` to `CardThemeData
- TextSelectionTheme migration2.0.0breaking
ThemeData` properties that controlled the look of selected text in Material widgets have been moved into their own `TextSelectionTheme`. These properties include `cursorColor`, `textSelectionColor`, and `textSelectionHandleColor`. The defaults
- The ThemeData.useMaterial3 property is now set to true by default3.16.0breaking
components, new component themes, and updated component visuals. As of this release, `ThemeData.useMaterial3` is set `true` by default. Prior to the 3.16 release, the changes were
- Deprecate ThemeData.dialogBackgroundColor in favor of DialogThemeData.backgroundColor3.29.0deprecated
ThemeData.dialogBackgroundColor` parameter was deprecated in favor of the `DialogThemeData.backgroundColor` parameter. The `ThemeData.dialogBackgroundColor` is deprecated in favor of a component-specific theme. Use `DialogThemeData` to override the default
- Migrating to Material 33.16.0breaking
removed as part of Flutter's deprecation policy. ### Colors The default values for `ThemeData.colorScheme` are updated to match the Material 3 Design spec. The `ColorScheme.fromSeed` constructor generates
- FloatingActionButton and ThemeData's accent properties1.17.0breaking
Removed Flutter's `FloatingActionButton` (FAB) dependency on `ThemeData` accent properties. Previously, the `accentIconTheme` provided a default for the `FloatingActionButton`'s `foregroundColor` property: This was a small part
- New Buttons and Button Themes1.20.0breaking
basic material button widgets and themes have been added to Flutter. The original classes have been deprecated and will eventually be removed. The overall goal
- Introduce new ColorScheme roles3.22.0breaking
surfaceContainerHighest`. Code before migration: ```dart final ColorScheme colorScheme = ColorScheme(); MaterialApp( theme: ThemeData( //... colorScheme: colorScheme.copyWith( background: myColor1, onBackground: myColor2
- Deprecated API removed after v3.103.13.0removed
that reached end of life after the 3.10 stable release have been removed. ThemeData.fixTextFieldOutlineLabel ThemeData OverscrollIndicatorNotification.disallowGlow StretchingOverscrollIndicator GlowingOverscrollIndicator OverscrollIndicatorNotification ColorScheme.primaryVariant ColorScheme.secondaryVariant ColorScheme.primaryContainer ColorScheme.secondaryContainer ColorScheme ThemeData.primaryColorBrightness Brightness ThemeData.primaryColor ThemeData.brightness
- Deprecated API removed after v3.73.10.0removed
stable release have been removed. Code before migration: ```dart var myTheme = ThemeData( //... accentColor: Colors.blue, //... ); var color = myTheme.accentColor; ``` Code after migration: ```dart var myTheme = ThemeData( //... colorScheme: ColorScheme( //... secondary:Colors.blue
- Deprecate app bar color3.35.0deprecated
Code before migration: ```dart // AppBarTheme constructor AppBarTheme( color: Colors.blue, elevation: 4.0, ) // AppBarTheme copyWith theme.copyWith( color: Colors.red, elevation: 2.0, ) // AppBarThemeData constructor AppBarThemeData( color: Colors.green, elevation: 4.0, ) // AppBarThemeData copyWith themeData.copyWith
- Deprecate ButtonBar in favor of OverflowBar3.24.0deprecated
deprecated in favor of the more efficient `OverflowBar` widget. As a result, `ThemeData.buttonBarTheme` and `ButtonBarTheme` were also deprecated. - Replace `ButtonBar` widget with `OverflowBar` widget. - By default, `ButtonBar` aligns
- Page transitions replaced by ZoomPageTransitionsBuilder3.0.0breaking
builders explicitly for the target platforms. Code before migration: ```dart MaterialApp( theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple)), ) ``` Code after migration: ```dart MaterialApp( theme: ThemeData( pageTransitionsTheme: const
- Add isDark, isLight, and isSystem getters to ThemeMode3.44.0new-feature
isDark, isLight, and isSystem getters to ThemeMode (Material, by @Turskyi). ThemeMode
- [ Widget Preview ] Rework UI and theming3.38.0tooling
Widget Preview ] Rework UI and theming (Tooling, by @bkonyi
- Update more comments related to theme normalization3.41.0docs
Update more comments related to theme normalization (Material, by @bleroux
- Update some comments related to theme normalization3.41.0docs
Update some comments related to theme normalization (Material, by @bleroux
- Update some comments to reflect theme normalization3.41.0docs
Update some comments to reflect theme normalization (Material, by @bleroux
- [Framework/Tool] Decouple preview theme imports3.47.0improvement
Framework/Tool] Decouple preview theme imports (Framework, by @bkonyi
- Update several comments related to theme normalization3.41.0docs
Update several comments related to theme normalization (Material, by @bleroux
- Update some BottomNavigationBar comments to reflect theme normalization3.41.0docs
Update some BottomNavigationBar comments to reflect theme normalization (Material, by @bleroux). BottomNavigationBar
- Fix PopupMenu does not update when PopupMenuTheme in Theme changes.3.38.0bugfix
PopupMenu does not update when PopupMenuTheme in Theme changes. (Material, by @ksokolovskyi). PopupMenu PopupMenuTheme