在生成的ohos工程中:Index.ets:@Builder componentBuilder(){ // 自定义加载界面的样式 Column(){ Text('loading....') } } build() { Stack() { FlutterPage({ viewId: this.viewId, splashScreenView:this.componentBuilder, }) } }
在生成的ohos工程中:
Index.ets: