From fc662fb18dc700d062596e78613d108b39742012 Mon Sep 17 00:00:00 2001 From: zmf <279822581@qq.com> Date: Fri, 19 Apr 2024 11:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=BATexture=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zmf <279822581@qq.com> --- .../flutter/src/main/ets/component/XComponentStruct.ets | 4 ++-- .../flutter/src/main/ets/embedding/ohos/FlutterPage.ets | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/component/XComponentStruct.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/component/XComponentStruct.ets index 322ffd13a8..38f9c9d8be 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/component/XComponentStruct.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/component/XComponentStruct.ets @@ -28,7 +28,7 @@ struct XComponentStruct { if (this.applicationInfo.isDebugMode) { XComponent({ id: (this.dvModelParams as Record)["xComponentId"], - type: XComponentType.SURFACE, + type: XComponentType.TEXTURE, libraryname: 'flutter' }) .onLoad((context) => { @@ -40,7 +40,7 @@ struct XComponentStruct { } else { XComponent({ id: (this.dvModelParams as Record)["xComponentId"], - type: XComponentType.SURFACE, + type: XComponentType.TEXTURE, libraryname: 'flutter' }) .onLoad((context) => { diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets index 5583f3bdf5..c14e38b02f 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/ohos/FlutterPage.ets @@ -27,7 +27,7 @@ const TAG = "FlutterPage"; export struct FlutterPage { @State rootDvModel: DVModelChildren | undefined = undefined @Prop viewId: string = "" - @Prop xComponentType: XComponentType = XComponentType.SURFACE + @Prop xComponentType: XComponentType = XComponentType.TEXTURE @Builder doNothingBuilder() {} @BuilderParam splashScreenView: () => void = this.doNothingBuilder; -- Gitee