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
3533321b
Unverified
Commit
3533321b
authored
Apr 27, 2021
by
Hans Muller
Committed by
GitHub
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ColorScheme.primary (not secondary), ExpansionTile expanded color (#81241)
parent
3eb57361
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
expansion_tile.dart
packages/flutter/lib/src/material/expansion_tile.dart
+2
-2
expansion_tile_test.dart
packages/flutter/test/material/expansion_tile_test.dart
+2
-2
No files found.
packages/flutter/lib/src/material/expansion_tile.dart
View file @
3533321b
...
...
@@ -293,10 +293,10 @@ class _ExpansionTileState extends State<ExpansionTile> with SingleTickerProvider
_borderColorTween
.
end
=
theme
.
dividerColor
;
_headerColorTween
..
begin
=
widget
.
collapsedTextColor
??
theme
.
textTheme
.
subtitle1
!.
color
..
end
=
widget
.
textColor
??
colorScheme
.
second
ary
;
..
end
=
widget
.
textColor
??
colorScheme
.
prim
ary
;
_iconColorTween
..
begin
=
widget
.
collapsedIconColor
??
theme
.
unselectedWidgetColor
..
end
=
widget
.
iconColor
??
colorScheme
.
second
ary
;
..
end
=
widget
.
iconColor
??
colorScheme
.
prim
ary
;
_backgroundColorTween
..
begin
=
widget
.
collapsedBackgroundColor
..
end
=
widget
.
backgroundColor
;
...
...
packages/flutter/test/material/expansion_tile_test.dart
View file @
3533321b
...
...
@@ -154,7 +154,7 @@ void main() {
expect
(
collapsedContainerDecoration
.
border
!.
bottom
.
color
,
_dividerColor
);
},
variant:
const
TargetPlatformVariant
(<
TargetPlatform
>{
TargetPlatform
.
iOS
,
TargetPlatform
.
macOS
}));
testWidgets
(
'
ListTileTheme
'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'
ExpansionTile Theme dependencies
'
,
(
WidgetTester
tester
)
async
{
final
Key
expandedTitleKey
=
UniqueKey
();
final
Key
collapsedTitleKey
=
UniqueKey
();
final
Key
expandedIconKey
=
UniqueKey
();
...
...
@@ -163,7 +163,7 @@ void main() {
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
colorScheme:
ColorScheme
.
fromSwatch
().
copyWith
(
second
ary:
_foregroundColor
),
colorScheme:
ColorScheme
.
fromSwatch
().
copyWith
(
prim
ary:
_foregroundColor
),
unselectedWidgetColor:
_unselectedWidgetColor
,
textTheme:
const
TextTheme
(
subtitle1:
TextStyle
(
color:
_headerColor
)),
),
...
...
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