Unverified Commit 3533321b authored by Hans Muller's avatar Hans Muller Committed by GitHub

Use ColorScheme.primary (not secondary), ExpansionTile expanded color (#81241)

parent 3eb57361
......@@ -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.secondary;
..end = widget.textColor ?? colorScheme.primary;
_iconColorTween
..begin = widget.collapsedIconColor ?? theme.unselectedWidgetColor
..end = widget.iconColor ?? colorScheme.secondary;
..end = widget.iconColor ?? colorScheme.primary;
_backgroundColorTween
..begin = widget.collapsedBackgroundColor
..end = widget.backgroundColor;
......
......@@ -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(secondary: _foregroundColor),
colorScheme: ColorScheme.fromSwatch().copyWith(primary: _foregroundColor),
unselectedWidgetColor: _unselectedWidgetColor,
textTheme: const TextTheme(subtitle1: TextStyle(color: _headerColor)),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment