mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
parent
7c894c091f
commit
045fb9989c
@ -127,9 +127,9 @@ Future<void> runAndroidEngineTests({required ImpellerBackend impellerBackend}) a
|
||||
}
|
||||
|
||||
const String kSurfaceControlMetadataDisabled =
|
||||
'<meta-data android:name="io.flutter.embedding.android.UseSurfaceControl" android:value="false" />';
|
||||
'<meta-data android:name="io.flutter.embedding.android.EnableSurfaceControl" android:value="false" />';
|
||||
const String kSurfaceControlMetadataEnabled =
|
||||
'<meta-data android:name="io.flutter.embedding.android.UseSurfaceControl" android:value="true" />';
|
||||
'<meta-data android:name="io.flutter.embedding.android.EnableSurfaceControl" android:value="true" />';
|
||||
|
||||
String _impellerBackendMetadata({required String value}) {
|
||||
return '<meta-data android:name="io.flutter.embedding.android.ImpellerBackend" android:value="$value" />';
|
||||
|
@ -25,7 +25,7 @@ final class MainApp extends StatelessWidget {
|
||||
const MainApp({super.key});
|
||||
|
||||
// This should appear as the yellow line over a blue box. The
|
||||
// red box should not be visible unless the platform view has not loaded yet.
|
||||
// green box should not be visible unless the platform view has not loaded yet.
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const MaterialApp(
|
||||
@ -33,7 +33,7 @@ final class MainApp extends StatelessWidget {
|
||||
home: Stack(
|
||||
alignment: AlignmentDirectional.center,
|
||||
children: <Widget>[
|
||||
SizedBox(width: 190, height: 190, child: ColoredBox(color: Colors.red)),
|
||||
SizedBox(width: 190, height: 190, child: ColoredBox(color: Colors.green)),
|
||||
SizedBox(
|
||||
width: 200,
|
||||
height: 200,
|
||||
|
Loading…
Reference in New Issue
Block a user