gpt4 book ai didi

ios - 如果设置 io.flutter.embedded_views_preview 为 true,则无法正常运行 flutter 项目

转载 作者:行者123 更新时间:2023-12-03 08:46:25 24 4
gpt4 key购买 nike

Flutter( channel 主控,v1.9.1-pre.58)

我编写了一个自定义 native View 并通过 flutter 嵌入 View 使用它。然后我在 Info.plist 中将 io.flutter.embedded_views_preview 设置为 true。它在 iOS 模拟器中运行良好,但当我在 iPhone 上运行时,只显示黑屏。当我在Info.plist删除io.flutter.embedded_views_preview时,它可以显示其他小部件,但这也会导致嵌入 View 无法显示.

最佳答案

Info.plist中设置io.flutter.embedded_views_preview标志是no longer required for Flutter 1.22 or above .

Prior to Flutter 1.22, platform views were in developers preview. In1.22 or above, this is no longer the case, so there’s no need to set the io.flutter.embedded_views_preview flag in Info.plist.

我建议upgradelatest Flutter version .

关于ios - 如果设置 io.flutter.embedded_views_preview 为 true,则无法正常运行 flutter 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61289553/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com