Skip to content

Commit 20eb3ea

Browse files
Reverts "Reland Add platform view wide gamut test" (#139189)
Reverts flutter/flutter#139101 Initiated by: jonahwilliams This change reverts the following previous change: Original Description: Reland of flutter/flutter#138837 I reverted too many config files, the app needed the pbx project file in order to find the new class I added. Instead, just put the new platform view in the app delegate so it builds.
1 parent 8b6277e commit 20eb3ea

File tree

3 files changed

+0
-117
lines changed

3 files changed

+0
-117
lines changed

dev/integration_tests/wide_gamut_test/integration_test/app_test.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,6 @@ void main() {
166166
app.run(app.Setup.drawnImage);
167167
await tester.pumpAndSettle(const Duration(seconds: 2));
168168

169-
const MethodChannel channel = MethodChannel('flutter/screenshot');
170-
final List<Object?> result =
171-
await channel.invokeMethod('test') as List<Object?>;
172-
expect(_findColor(result, <double>[0.0, 1.0, 0.0]), isTrue);
173-
});
174-
testWidgets('draw image with wide gamut works ontop of platform view with blur', (WidgetTester tester) async {
175-
app.run(app.Setup.drawnImageAndPlatformView);
176-
await tester.pumpAndSettle(const Duration(seconds: 2));
177-
178169
const MethodChannel channel = MethodChannel('flutter/screenshot');
179170
final List<Object?> result =
180171
await channel.invokeMethod('test') as List<Object?>;

dev/integration_tests/wide_gamut_test/ios/Runner/AppDelegate.swift

Lines changed: 0 additions & 86 deletions
This file was deleted.

dev/integration_tests/wide_gamut_test/lib/main.dart

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ enum Setup {
145145
canvasSaveLayer,
146146
blur,
147147
drawnImage,
148-
drawnImageAndPlatformView
149148
}
150149

151150
void run(Setup setup) {
@@ -245,19 +244,6 @@ Future<ui.Image> _loadImage() async {
245244
return (await codec.getNextFrame()).image;
246245
}
247246

248-
class DummyPlatformView extends StatelessWidget {
249-
const DummyPlatformView({super.key});
250-
251-
@override
252-
Widget build(BuildContext context) {
253-
return const SizedBox(
254-
width: 400,
255-
height: 400,
256-
child: UiKitView(viewType: '<dummy-view>'),
257-
);
258-
}
259-
}
260-
261247
class MyHomePage extends StatefulWidget {
262248
const MyHomePage(this.setup, {super.key, required this.title});
263249

@@ -299,14 +285,6 @@ class _MyHomePageState extends State<MyHomePage> {
299285
imageWidget = Image.memory(base64Decode(_displayP3Logo));
300286
case Setup.drawnImage:
301287
imageWidget = CustomPaint(painter: _SaveLayerDrawer(_image));
302-
case Setup.drawnImageAndPlatformView:
303-
imageWidget = Stack(
304-
children: <Widget>[
305-
const DummyPlatformView(),
306-
Image.memory(base64Decode(_displayP3Logo)),
307-
BackdropFilter(filter: ui.ImageFilter.blur(sigmaX: 6, sigmaY: 6), child: const SizedBox(width: 400, height: 400)),
308-
],
309-
);
310288
case Setup.canvasSaveLayer:
311289
imageWidget = CustomPaint(painter: _SaveLayerDrawer(_image));
312290
case Setup.blur:

0 commit comments

Comments
 (0)