Flutter - How to get frame of a Texture widget from iOS native plugin

Viewed 68

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.

0 Answers
Related