mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Update ColorScheme to show the newly added color roles (#2299)
This PR is to fix #2289 and add newly added `ColorScheme` roles since https://github.com/flutter/flutter/pull/144273 --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// ignore_for_file: avoid_types_on_closure_parameters
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:material_3_demo/color_palettes_screen.dart';
|
||||
@@ -70,6 +69,6 @@ void main() {
|
||||
));
|
||||
expect(find.text('Light ColorScheme'), findsOneWidget);
|
||||
expect(find.text('Dark ColorScheme'), findsOneWidget);
|
||||
expect(find.byType(ColorGroup, skipOffstage: false), findsNWidgets(16));
|
||||
expect(find.byType(ColorGroup, skipOffstage: false), findsNWidgets(18));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user