Unverified Commit 3ccf730a authored by Pierre-Louis's avatar Pierre-Louis Committed by GitHub

Reland "Refactor ThemeData (#91497)" (part 1) (#92822)

parent fb1f8b0e
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -666,88 +666,93 @@ void main() { ...@@ -666,88 +666,93 @@ void main() {
test('ThemeData diagnostics include all properties', () { test('ThemeData diagnostics include all properties', () {
// List of properties must match the properties in ThemeData.hashCode() // List of properties must match the properties in ThemeData.hashCode()
final Set<String> expectedPropertyNames = <String>{ final Set<String> expectedPropertyNames = <String>{
// GENERAL CONFIGURATION
'androidOverscrollIndicator',
'applyElevationOverlayColor',
'cupertinoOverrideTheme',
'inputDecorationTheme',
'materialTapTargetSize',
'pageTransitionsTheme',
'platform',
'scrollbarTheme',
'splashFactory',
'visualDensity', 'visualDensity',
// COLOR
'colorScheme',
'primaryColor', 'primaryColor',
'primaryColorBrightness', 'primaryColorBrightness',
'primaryColorLight', 'primaryColorLight',
'primaryColorDark', 'primaryColorDark',
'canvasColor', 'focusColor',
'hoverColor',
'shadowColor', 'shadowColor',
'accentColor', 'canvasColor',
'accentColorBrightness',
'scaffoldBackgroundColor', 'scaffoldBackgroundColor',
'bottomAppBarColor', 'bottomAppBarColor',
'cardColor', 'cardColor',
'dividerColor', 'dividerColor',
'focusColor',
'hoverColor',
'highlightColor', 'highlightColor',
'splashColor', 'splashColor',
'splashFactory',
'selectedRowColor', 'selectedRowColor',
'unselectedWidgetColor', 'unselectedWidgetColor',
'disabledColor', 'disabledColor',
'buttonTheme',
'buttonColor',
'toggleButtonsTheme',
'secondaryHeaderColor', 'secondaryHeaderColor',
'textSelectionColor',
'cursorColor',
'textSelectionHandleColor',
'backgroundColor', 'backgroundColor',
'dialogBackgroundColor', 'dialogBackgroundColor',
'indicatorColor', 'indicatorColor',
'hintColor', 'hintColor',
'errorColor', 'errorColor',
'toggleableActiveColor', 'toggleableActiveColor',
// TYPOGRAPHY & ICONOGRAPHY
'typography',
'textTheme', 'textTheme',
'primaryTextTheme', 'primaryTextTheme',
'accentTextTheme',
'inputDecorationTheme',
'iconTheme', 'iconTheme',
'primaryIconTheme', 'primaryIconTheme',
'accentIconTheme', // COMPONENT THEMES
'sliderTheme',
'tabBarTheme',
'tooltipTheme',
'cardTheme',
'chipTheme',
'platform',
'materialTapTargetSize',
'applyElevationOverlayColor',
'pageTransitionsTheme',
'appBarTheme', 'appBarTheme',
'scrollbarTheme', 'bannerTheme',
'bottomAppBarTheme', 'bottomAppBarTheme',
'colorScheme', 'bottomNavigationBarTheme',
'bottomSheetTheme',
'buttonBarTheme',
'buttonTheme',
'cardTheme',
'checkboxTheme',
'chipTheme',
'dataTableTheme',
'dialogTheme', 'dialogTheme',
'dividerTheme',
'drawerTheme',
'elevatedButtonTheme',
'floatingActionButtonTheme', 'floatingActionButtonTheme',
'listTileTheme',
'navigationBarTheme', 'navigationBarTheme',
'navigationRailTheme', 'navigationRailTheme',
'typography',
'cupertinoOverrideTheme',
'snackBarTheme',
'bottomSheetTheme',
'popupMenuTheme',
'bannerTheme',
'dividerTheme',
'buttonBarTheme',
'bottomNavigationBarTheme',
'timePickerTheme',
'textButtonTheme',
'elevatedButtonTheme',
'outlinedButtonTheme', 'outlinedButtonTheme',
'textSelectionTheme', 'popupMenuTheme',
'dataTableTheme', 'progressIndicatorTheme',
'checkboxTheme',
'radioTheme', 'radioTheme',
'sliderTheme',
'snackBarTheme',
'switchTheme', 'switchTheme',
'progressIndicatorTheme', 'tabBarTheme',
'drawerTheme', 'textButtonTheme',
'listTileTheme', 'textSelectionTheme',
'fixTextFieldOutlineLabel', 'timePickerTheme',
'toggleButtonsTheme',
'tooltipTheme',
// DEPRECATED (newest deprecations at the bottom)
'useTextSelectionTheme', 'useTextSelectionTheme',
'androidOverscrollIndicator', 'textSelectionColor',
'cursorColor',
'textSelectionHandleColor',
'accentColor',
'accentColorBrightness',
'accentTextTheme',
'accentIconTheme',
'buttonColor',
'fixTextFieldOutlineLabel',
}; };
final DiagnosticPropertiesBuilder properties = DiagnosticPropertiesBuilder(); final DiagnosticPropertiesBuilder properties = DiagnosticPropertiesBuilder();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment