-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
This issue mirrors the design of https://flutter.dev/go/material-theme-system-updates
Rename the TextTheme TextStyles
Deprecate/remove the accent properties
Compute brightness, primaryColorBrightness, accentColorBrightness
- Deprecate
accentColorBrightnessDeprecate ThemeData accentColor, accentColorBright, accentIconTheme, accentTextTheme #81336 - Change
ThemeData.brightnessto be a simple getter that returnscolorScheme.brightnessThemeData.brightness == ThemeData.colorScheme.brightness #56956 - Update
SearchDelegateUpdated SearchDelegate to follow custom InputDecorationTheme #55209 - Update
GridTileBarRemoved GridTileBar accentColor dependency. #78574 - Deprecate
primaryColorBrightnessDeprecateprimaryColorBrightness#93396
Deprecate/move/remove the 21 grab-bag properties
(x) indicates number of references, excludingtheme_data.dart and tests. This can be used a proxy for disruptiveness/ease of deprecation.
- Deprecate
ThemeData.canvasColor[ThemeData🧹] RemovecanvasColorusages #116350 - Deprecate
ThemeData.scaffoldBackgroundColor[ThemeData🧹] RemovescaffoldBackgroundColorusages #116341 - Deprecate
ThemeData.cardColor[ThemeData🧹] RemovecardColorusages #116349 - Deprecate
ThemeData.dividerColor[ThemeData🧹] RemovedividerColorusages #116347 - Deprecate
ThemeData.secondaryHeaderColor[ThemeData🧹] RemovesecondaryHeaderColorusages #116342 - Deprecate
ThemeData.hintColor[ThemeData🧹] RemovehintColorusages #116346 - Deprecate
ThemeData.splashColor(5) ⇒inkColororinkFeatureColor - Deprecate
ThemeData.unselectedWidgetColor(11) ⇒ seetoggleableActiveColordeprecation - Deprecate
ThemeData.bottomAppBarColor⇒ Deprecate ThemeData.bottomAppBarColor #111080 - Deprecate
ThemeData.selectedRowColorDeprecate ThemeData.selectedRowColor #109070 - Deprecate
ThemeData.buttonColorDeprecated ThemeData buttonColor #82196 - Deprecate
ThemeData.textSelectionColorTextSelectionTheme support (step 3 of 3) #66482 - Deprecate
ThemeData.cursorColorTextSelectionTheme support (step 3 of 3) #66482 - Deprecate
ThemeData.textSelectionHandleColorTextSelectionTheme support (step 3 of 3) #66482 - Deprecate
ThemeData.backgroundColorDeprecateThemeDataerrorColorandbackgroundColor#110162 - Deprecate
ThemeData.dialogBackgroundColorDeprecateThemeData.dialogBackgroundColorin favor ofDialogThemeData.backgroundColor#155072 - Deprecate
ThemeData.indicatorColorDeprecateThemeData.indicatorColorin favor ofTabBarThemeData.indicatorColor#160024 - Deprecate
ThemeData.errorColorDeprecateThemeDataerrorColorandbackgroundColor#110162 - Deprecate
ThemeData.toggleableActiveColorDeprecatetoggleableActiveColor#97972
Additional grab-bag properties
These grab-bag properties not in the original linked proposal, but can also be deprecated:
- Deprecate
ThemeData.shadowColor[ThemeData🧹] RemoveshadowColorusages #116343 - Deprecate
ThemeData.splashFactory(4) ⇒inkFactoryorinkFeatureFactory - Deprecate
primaryColorDeprecateThemeData.primaryX#110848 - Deprecate
primaryColorDark[ThemeData🧹] RemoveprimaryColorLight&primaryColorDarkusages #116362 - Deprecate
primaryColorLight[ThemeData🧹] RemoveprimaryColorLight&primaryColorDarkusages #116362 - Deprecate
ThemeData.fixTextFieldOutlineLabelDeprecate ThemeData.fixTextFieldOutlineLabel #87281
These factory constructor parameters can also be deprecated:
- Deprecate
primarySwatchfromThemeDatafactory constructor (8) ⇒colorSchemeorcolorSchemeSeedColor(related DeprecateColorScheme.fromSwatch#120064)
Property colors not subject to removal
- State colors like
ThemeData.disabledColor(26),ThemeData.focusColor(19), andThemeData.hoverColor(19) have high usage and are shared amongst many components - There is similar widespread usage for
ThemeData.highlightColor(13) - Other parameters can remain in the factory constructor (e.g.
ThemeData.fontFamilyandThemeData.fontFamilyFallback) for convenience
Component Theme Normalization
All of the existing themes have been normalized except for the following:
-
AppBarThemeNormalize AppBarTheme #169130 -
BottomAppBarThemeNormalize BottomAppBarTheme #168586 -
InputDecorationThemeNormalize input decoration theme #168981 -
CardThemeNormalize Card theme #151914 -
ChipThemeReland "ChipThemeData is now conventional" #94179 -
DialogThemeNormalize Dialog theme #153982 -
ListTileThemeReland Refactored ListTileTheme: ListTileThemeData, ThemeData.listThemeData #91840 -
TabBarThemeNormalize TabBarTheme #155476
jhb-dev, rami-a, dbbd59, TahaTesser, luvetter and 24 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
Status
To do