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 =
|
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 =
|
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}) {
|
String _impellerBackendMetadata({required String value}) {
|
||||||
return '<meta-data android:name="io.flutter.embedding.android.ImpellerBackend" android:value="$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});
|
const MainApp({super.key});
|
||||||
|
|
||||||
// This should appear as the yellow line over a blue box. The
|
// 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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const MaterialApp(
|
return const MaterialApp(
|
||||||
@ -33,7 +33,7 @@ final class MainApp extends StatelessWidget {
|
|||||||
home: Stack(
|
home: Stack(
|
||||||
alignment: AlignmentDirectional.center,
|
alignment: AlignmentDirectional.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
SizedBox(width: 190, height: 190, child: ColoredBox(color: Colors.red)),
|
SizedBox(width: 190, height: 190, child: ColoredBox(color: Colors.green)),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 200,
|
width: 200,
|
||||||
height: 200,
|
height: 200,
|
||||||
|
Loading…
Reference in New Issue
Block a user