@@ -194,7 +194,6 @@ void main() {
194
194
expect (theme.scaffoldBackgroundColor, theme.colorScheme.background);
195
195
expect (theme.cardColor, theme.colorScheme.surface);
196
196
expect (theme.dividerColor, theme.colorScheme.outline);
197
- expect (theme.backgroundColor, theme.colorScheme.background);
198
197
expect (theme.dialogBackgroundColor, theme.colorScheme.background);
199
198
expect (theme.indicatorColor, theme.colorScheme.onPrimary);
200
199
expect (theme.errorColor, theme.colorScheme.error);
@@ -263,7 +262,6 @@ void main() {
263
262
expect (theme.scaffoldBackgroundColor, theme.colorScheme.background);
264
263
expect (theme.cardColor, theme.colorScheme.surface);
265
264
expect (theme.dividerColor, theme.colorScheme.outline);
266
- expect (theme.backgroundColor, theme.colorScheme.background);
267
265
expect (theme.dialogBackgroundColor, theme.colorScheme.background);
268
266
expect (theme.indicatorColor, theme.colorScheme.onSurface);
269
267
expect (theme.errorColor, theme.colorScheme.error);
@@ -327,7 +325,6 @@ void main() {
327
325
expect (theme.scaffoldBackgroundColor, theme.colorScheme.background);
328
326
expect (theme.cardColor, theme.colorScheme.surface);
329
327
expect (theme.dividerColor, theme.colorScheme.outline);
330
- expect (theme.backgroundColor, theme.colorScheme.background);
331
328
expect (theme.dialogBackgroundColor, theme.colorScheme.background);
332
329
expect (theme.indicatorColor, theme.colorScheme.onPrimary);
333
330
expect (theme.errorColor, theme.colorScheme.error);
@@ -392,7 +389,6 @@ void main() {
392
389
expect (theme.scaffoldBackgroundColor, theme.colorScheme.background);
393
390
expect (theme.cardColor, theme.colorScheme.surface);
394
391
expect (theme.dividerColor, theme.colorScheme.outline);
395
- expect (theme.backgroundColor, theme.colorScheme.background);
396
392
expect (theme.dialogBackgroundColor, theme.colorScheme.background);
397
393
expect (theme.indicatorColor, theme.colorScheme.onPrimary);
398
394
expect (theme.errorColor, theme.colorScheme.error);
@@ -456,7 +452,6 @@ void main() {
456
452
expect (theme.scaffoldBackgroundColor, theme.colorScheme.background);
457
453
expect (theme.cardColor, theme.colorScheme.surface);
458
454
expect (theme.dividerColor, theme.colorScheme.outline);
459
- expect (theme.backgroundColor, theme.colorScheme.background);
460
455
expect (theme.dialogBackgroundColor, theme.colorScheme.background);
461
456
expect (theme.indicatorColor, theme.colorScheme.onSurface);
462
457
expect (theme.errorColor, theme.colorScheme.error);
@@ -470,7 +465,6 @@ void main() {
470
465
expect (theme.brightness, equals (Brightness .light));
471
466
expect (theme.primaryColor, equals (lightColors.primary));
472
467
expect (theme.cardColor, equals (lightColors.surface));
473
- expect (theme.backgroundColor, equals (lightColors.background));
474
468
expect (theme.canvasColor, equals (lightColors.background));
475
469
expect (theme.scaffoldBackgroundColor, equals (lightColors.background));
476
470
expect (theme.dialogBackgroundColor, equals (lightColors.background));
@@ -486,7 +480,6 @@ void main() {
486
480
// in dark theme's the color used for main components is surface instead of primary
487
481
expect (theme.primaryColor, equals (darkColors.surface));
488
482
expect (theme.cardColor, equals (darkColors.surface));
489
- expect (theme.backgroundColor, equals (darkColors.background));
490
483
expect (theme.canvasColor, equals (darkColors.background));
491
484
expect (theme.scaffoldBackgroundColor, equals (darkColors.background));
492
485
expect (theme.dialogBackgroundColor, equals (darkColors.background));
@@ -903,7 +896,6 @@ void main() {
903
896
tooltipTheme: const TooltipThemeData (height: 100 ),
904
897
// DEPRECATED (newest deprecations at the bottom)
905
898
errorColor: Colors .black,
906
- backgroundColor: Colors .black,
907
899
);
908
900
909
901
final SliderThemeData otherSliderTheme = SliderThemeData .fromPrimaryColors (
@@ -1021,7 +1013,6 @@ void main() {
1021
1013
1022
1014
// DEPRECATED (newest deprecations at the bottom)
1023
1015
errorColor: Colors .white,
1024
- backgroundColor: Colors .white,
1025
1016
);
1026
1017
1027
1018
final ThemeData themeDataCopy = theme.copyWith (
@@ -1120,7 +1111,6 @@ void main() {
1120
1111
1121
1112
// DEPRECATED (newest deprecations at the bottom)
1122
1113
errorColor: otherTheme.errorColor,
1123
- backgroundColor: otherTheme.backgroundColor,
1124
1114
);
1125
1115
1126
1116
// For the sanity of the reader, make sure these properties are in the same
@@ -1220,7 +1210,6 @@ void main() {
1220
1210
1221
1211
// DEPRECATED (newest deprecations at the bottom)
1222
1212
expect (themeDataCopy.errorColor, equals (otherTheme.errorColor));
1223
- expect (themeDataCopy.backgroundColor, equals (otherTheme.backgroundColor));
1224
1213
});
1225
1214
1226
1215
testWidgets ('ThemeData.toString has less than 200 characters output' , (WidgetTester tester) async {
@@ -1252,7 +1241,6 @@ void main() {
1252
1241
expect (theme.colorScheme.brightness, equals (Brightness .dark));
1253
1242
expect (theme.primaryColor, equals (lightColors.primary));
1254
1243
expect (theme.cardColor, equals (lightColors.surface));
1255
- expect (theme.backgroundColor, equals (lightColors.background));
1256
1244
expect (theme.canvasColor, equals (lightColors.background));
1257
1245
expect (theme.scaffoldBackgroundColor, equals (lightColors.background));
1258
1246
expect (theme.dialogBackgroundColor, equals (lightColors.background));
@@ -1351,7 +1339,6 @@ void main() {
1351
1339
'tooltipTheme' ,
1352
1340
// DEPRECATED (newest deprecations at the bottom)
1353
1341
'errorColor' ,
1354
- 'backgroundColor' ,
1355
1342
};
1356
1343
1357
1344
final DiagnosticPropertiesBuilder properties = DiagnosticPropertiesBuilder ();
0 commit comments