Refactor ThemeData (#91497)
This commit is contained in:
parent
6602107bb2
commit
78689d347c
File diff suppressed because it is too large
Load Diff
@ -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',
|
|
||||||
'checkboxTheme',
|
|
||||||
'radioTheme',
|
|
||||||
'switchTheme',
|
|
||||||
'progressIndicatorTheme',
|
'progressIndicatorTheme',
|
||||||
'drawerTheme',
|
'radioTheme',
|
||||||
'listTileTheme',
|
'sliderTheme',
|
||||||
'fixTextFieldOutlineLabel',
|
'snackBarTheme',
|
||||||
|
'switchTheme',
|
||||||
|
'tabBarTheme',
|
||||||
|
'textButtonTheme',
|
||||||
|
'textSelectionTheme',
|
||||||
|
'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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user