All the documentation that I can find for Flutter’s Add-to-App demonstrates how to push/segue/present a newly created FlutterViewController. I need to add a flutter view to a tab within a tabbar. I tried changing my class’s super class from UIViewController
to FlutterViewController
which worked, but is not using the flutter engine that is created within the app delegate. This solution resulted in showing in the launch screen before the flutter view, which isn’t desired.
How do I add a flutter view to a UIViewController
? Or how do I assign an engine to a FlutterViewController
from within the class?
2
Answers
I found a solution which adds the flutter view to the view controller.
with any UIViewController, you can add a flutter subview now.
with any UIViewController, you can add a flutter subview now.