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
66b50ed0
Unverified
Commit
66b50ed0
authored
May 23, 2018
by
Collin Jackson
Committed by
GitHub
May 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default toggleableActiveColor to accentColor if not set (#17848)
parent
41fb069c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+1
-1
No files found.
packages/flutter/lib/src/material/theme_data.dart
View file @
66b50ed0
...
...
@@ -114,8 +114,8 @@ class ThemeData extends Diagnosticable {
primaryColorLight
??=
isDark
?
Colors
.
grey
[
500
]
:
primarySwatch
[
100
];
primaryColorDark
??=
isDark
?
Colors
.
black
:
primarySwatch
[
700
];
final
bool
primaryIsDark
=
primaryColorBrightness
==
Brightness
.
dark
;
toggleableActiveColor
??=
isDark
?
Colors
.
tealAccent
[
200
]
:
(
accentColor
??
primarySwatch
[
600
]);
accentColor
??=
isDark
?
Colors
.
tealAccent
[
200
]
:
primarySwatch
[
500
];
toggleableActiveColor
??=
isDark
?
Colors
.
tealAccent
[
200
]
:
primarySwatch
[
600
];
accentColorBrightness
??=
estimateBrightnessForColor
(
accentColor
);
final
bool
accentIsDark
=
accentColorBrightness
==
Brightness
.
dark
;
canvasColor
??=
isDark
?
Colors
.
grey
[
850
]
:
Colors
.
grey
[
50
];
...
...
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