Trying to embed a platform view but the PrerollContext does not support embedding
to The not View does support Platform but
2023-09-11 14:14:53 时间
在Flutter开发中,使用 UiKitView 嵌入 iOS 原生 View时抛出异常:
Runner[1919:887281] [VERBOSE-2:platform_view_layer.cc(20)] Trying to embed a platform view but the PrerollContext does not support embedding
这时因为 iOS 端的UiKitView目前还只是preview状态, 默认是不支持的, 需要手动打开开关, 在info.plist文件中新增一行io.flutter.embedded_views_preview为true.
解决方法图示:
Flutter 中嵌入Android View与iOS原生View分析文章
本公众号会首发系列专题文章,付费的视频课程会在公众号中免费刊登,在你上下班的路上或者是睡觉前的一刻,本公众号都是你浏览知识干货的一个小选择,收藏不如行动,在那一刻,公众号会提示你该学习了。
相关文章
- The superclass"javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender
- Updates to the Git Commit Graph Feature
- Unable to access the IIS metabase
- There is insufficient memory for the Java Runtime Environment to continue问题解决
- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
- OpenCV 程序报错 The application has requested the Runtime to terminate it in an unusual way.
- E: could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporary unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it
- Kubernetes-kubectl命令出现错误【The connection to the server localhost:8080 was refused - did you specif...
- The GuidRepresentation for the reader is CSharpLegacy, which requires the binary sub type to be Uuid
- .NET错误The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework
- 程序员2020年新书推荐之 《Coders: The Making of a New Tribe and the Remaking of the World》
- ubuntu添加源报错The following signatures couldn't be verified because the public key is not available
- 7月18日云栖精选夜读:Bridge to the digital world —— AR算法技术分享
- pat 1092 To Buy or Not to Buy(20 分)
- Installing Windows Identity Foundation on Windows 8 - The Certificate for the signer of the message is invalid or not found.
- The view or its master was not found or no view engine supports the searched locations
- The declared package does not match the expected package
- 圣诞特辑-解决idea新建报错The required Java version 11 is not supported by the project SDK 1.8.
- Mysql 1290 - The MySQL server is running with the --secure-file-priv option