@@ -111,11 +111,12 @@ void main() {
111
111
expect (materialWidget.color, customColor);
112
112
});
113
113
114
- testWidgets ('Dialog background defaults to ColorScheme.surface ' , (WidgetTester tester) async {
114
+ testWidgets ('Dialog background defaults to ColorScheme.surfaceContainerHigh ' , (WidgetTester tester) async {
115
115
final ThemeData theme = ThemeData (
116
116
colorScheme: ThemeData ().colorScheme.copyWith (
117
117
surface: Colors .orange,
118
118
background: Colors .green,
119
+ surfaceContainerHigh: Colors .red,
119
120
)
120
121
);
121
122
const Dialog dialog = Dialog (
@@ -130,7 +131,7 @@ void main() {
130
131
await tester.pumpAndSettle ();
131
132
132
133
final Material materialWidget = _getMaterialFromDialog (tester);
133
- expect (materialWidget.color, theme.colorScheme.surface );
134
+ expect (materialWidget.color, theme.colorScheme.surfaceContainerHigh );
134
135
});
135
136
136
137
testWidgets ('Material2 - Dialog Defaults' , (WidgetTester tester) async {
@@ -167,7 +168,7 @@ void main() {
167
168
await tester.pumpAndSettle ();
168
169
169
170
final Material material3Widget = _getMaterialFromDialog (tester);
170
- expect (material3Widget.color, material3Theme.colorScheme.surface );
171
+ expect (material3Widget.color, material3Theme.colorScheme.surfaceContainerHigh );
171
172
expect (material3Widget.shape, _defaultM3DialogShape);
172
173
expect (material3Widget.elevation, 6.0 );
173
174
});
0 commit comments