1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

Add image-based color selection to M3 demo (#1703)

* Add ColorScheme.fromImageProvider selection method

* method cleanup

* cleanup

* Move changes to experimental/

* Move changes from stable branch

* update image descriptions

* update image selection border

* add mac network permissions

* comment responses
This commit is contained in:
Eilidh Southren
2023-03-22 14:33:47 +00:00
committed by GitHub
parent 481c2e3d1d
commit abf8298657
8 changed files with 325 additions and 65 deletions

View File

@@ -57,8 +57,8 @@ void main() {
});
testWidgets('Surface Tones screen shows correct content', (tester) async {
await tester.pumpWidget(MaterialApp(
home: Scaffold(body: Row(children: const [ElevationScreen()])),
await tester.pumpWidget(const MaterialApp(
home: Scaffold(body: Row(children: [ElevationScreen()])),
));
expect(find.text('Surface Tint Color Only'), findsOneWidget);
expect(find.text('Surface Tint Color and Shadow Color'), findsOneWidget);