Flutter-如何从iOS本机插件中获取纹理小部件的框架

发布于 2025-02-11 07:23:49 字数 612 浏览 1 评论 0原文

video_player 插件使用纹理使用textureId从ios Platform Platform Code注册的视图那些容纳avplayer对象。 在纹理类文档中,它说:

The size of the rectangle is determined by its parent widget, and the texture is automatically scaled to fit.

在本机iOS代码中,如何在扑动侧检测小部件的框架以在其中添加自定义视图作为子视图?

任何试图这样做的人?请指教。多谢。

video_player plugin is using Texture to render a view with textureId that is registered from the ios platform code that holds the AVPlayer object.
In the Texture class document, it said:

The size of the rectangle is determined by its parent widget, and the texture is automatically scaled to fit.

In the native iOS code, How can detect the frame of the widget on the Flutter side to add a custom view as a subview into it?

Anyone who had tried to do that? Please advise. Thanks a lot.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文