Sunday, August 14, 2022
HomeiOS DevelopmentEmbed iOS UIViewController in a Flutter widget

Embed iOS UIViewController in a Flutter widget


I’ve a Flutter fullscreen modal widget with a header, a footer and a few content material which must be rendered natively for iOS. I do know I can host iOS UIViews in Flutter utilizing Platform Views and I managed to do all of the logic to get this working.

My concern is that I must host an entire view controller inside this widget, not solely a easy view, and this view controller belongs to a third-party framework.

An possibility will probably be implementing the header and footer natively, however this is able to take a variety of time since this is able to contain passing lot of knowledge, performing community requests, including callbacks and so forth. I learn on-line {that a} UIKitViewController exists, however it will possibly solely be created from PlatformViewServices, which continues to be a piece in progress and shouldn’t be used. I did not handle to seek out correct documentation on-line.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments