Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3ccf730a
Unverified
Commit
3ccf730a
authored
Nov 01, 2021
by
Pierre-Louis
Committed by
GitHub
Nov 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reland "Refactor ThemeData (#91497)" (part 1) (#92822)
parent
fb1f8b0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1042 additions
and
956 deletions
+1042
-956
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+991
-910
theme_data_test.dart
packages/flutter/test/material/theme_data_test.dart
+51
-46
No files found.
packages/flutter/lib/src/material/theme_data.dart
View file @
3ccf730a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
packages/flutter/test/material/theme_data_test.dart
View file @
3ccf730a
...
...
@@ -666,88 +666,93 @@ void main() {
test
(
'ThemeData diagnostics include all properties'
,
()
{
// List of properties must match the properties in ThemeData.hashCode()
final
Set
<
String
>
expectedPropertyNames
=
<
String
>{
// GENERAL CONFIGURATION
'androidOverscrollIndicator'
,
'applyElevationOverlayColor'
,
'cupertinoOverrideTheme'
,
'inputDecorationTheme'
,
'materialTapTargetSize'
,
'pageTransitionsTheme'
,
'platform'
,
'scrollbarTheme'
,
'splashFactory'
,
'visualDensity'
,
// COLOR
'colorScheme'
,
'primaryColor'
,
'primaryColorBrightness'
,
'primaryColorLight'
,
'primaryColorDark'
,
'canvasColor'
,
'focusColor'
,
'hoverColor'
,
'shadowColor'
,
'accentColor'
,
'accentColorBrightness'
,
'canvasColor'
,
'scaffoldBackgroundColor'
,
'bottomAppBarColor'
,
'cardColor'
,
'dividerColor'
,
'focusColor'
,
'hoverColor'
,
'highlightColor'
,
'splashColor'
,
'splashFactory'
,
'selectedRowColor'
,
'unselectedWidgetColor'
,
'disabledColor'
,
'buttonTheme'
,
'buttonColor'
,
'toggleButtonsTheme'
,
'secondaryHeaderColor'
,
'textSelectionColor'
,
'cursorColor'
,
'textSelectionHandleColor'
,
'backgroundColor'
,
'dialogBackgroundColor'
,
'indicatorColor'
,
'hintColor'
,
'errorColor'
,
'toggleableActiveColor'
,
// TYPOGRAPHY & ICONOGRAPHY
'typography'
,
'textTheme'
,
'primaryTextTheme'
,
'accentTextTheme'
,
'inputDecorationTheme'
,
'iconTheme'
,
'primaryIconTheme'
,
'accentIconTheme'
,
'sliderTheme'
,
'tabBarTheme'
,
'tooltipTheme'
,
'cardTheme'
,
'chipTheme'
,
'platform'
,
'materialTapTargetSize'
,
'applyElevationOverlayColor'
,
'pageTransitionsTheme'
,
// COMPONENT THEMES
'appBarTheme'
,
'
scrollba
rTheme'
,
'
banne
rTheme'
,
'bottomAppBarTheme'
,
'colorScheme'
,
'bottomNavigationBarTheme'
,
'bottomSheetTheme'
,
'buttonBarTheme'
,
'buttonTheme'
,
'cardTheme'
,
'checkboxTheme'
,
'chipTheme'
,
'dataTableTheme'
,
'dialogTheme'
,
'dividerTheme'
,
'drawerTheme'
,
'elevatedButtonTheme'
,
'floatingActionButtonTheme'
,
'listTileTheme'
,
'navigationBarTheme'
,
'navigationRailTheme'
,
'typography'
,
'cupertinoOverrideTheme'
,
'snackBarTheme'
,
'bottomSheetTheme'
,
'popupMenuTheme'
,
'bannerTheme'
,
'dividerTheme'
,
'buttonBarTheme'
,
'bottomNavigationBarTheme'
,
'timePickerTheme'
,
'textButtonTheme'
,
'elevatedButtonTheme'
,
'outlinedButtonTheme'
,
'textSelectionTheme'
,
'dataTableTheme'
,
'checkboxTheme'
,
'popupMenuTheme'
,
'progressIndicatorTheme'
,
'radioTheme'
,
'sliderTheme'
,
'snackBarTheme'
,
'switchTheme'
,
'progressIndicatorTheme'
,
'drawerTheme'
,
'listTileTheme'
,
'fixTextFieldOutlineLabel'
,
'tabBarTheme'
,
'textButtonTheme'
,
'textSelectionTheme'
,
'timePickerTheme'
,
'toggleButtonsTheme'
,
'tooltipTheme'
,
// DEPRECATED (newest deprecations at the bottom)
'useTextSelectionTheme'
,
'androidOverscrollIndicator'
,
'textSelectionColor'
,
'cursorColor'
,
'textSelectionHandleColor'
,
'accentColor'
,
'accentColorBrightness'
,
'accentTextTheme'
,
'accentIconTheme'
,
'buttonColor'
,
'fixTextFieldOutlineLabel'
,
};
final
DiagnosticPropertiesBuilder
properties
=
DiagnosticPropertiesBuilder
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment