Flutter-如何从iOS本机插件中获取纹理小部件的框架
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论