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
78689d34
Unverified
Commit
78689d34
authored
Oct 29, 2021
by
Pierre-Louis
Committed by
GitHub
Oct 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor ThemeData (#91497)
parent
6602107b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1125 additions
and
1028 deletions
+1125
-1028
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+1074
-982
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 @
78689d34
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 @
78689d34
...
...
@@ -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