I’m following Flutters documentation nearly precisely that they put collectively right here.
The distinction is I’m making an attempt to load in a storyboard with a view controller (I do know subsequent to nothing about native IOS Improvement). I shall be creating a fairly primary display screen that faucets into some native options and want to use a storyboard to create the UI.
You may see the storyboard right here with the view controller and button. Once I run this in flutter I get the “view loaded: non-obligatory button stuff” print to console so I do know that the button will not be null. Nevertheless tapping the button doesn’t name the buttonPressed methodology. I held management and drug it into my controller and am fairly certain it’s linked appropriately. The view additionally has enabled consumer interactions. I’m misplaced on what I could also be doing mistaken to permit the interplay right here.
init(
body: CGRect,
viewIdentifier viewId: Int64,
arguments args: Any?,
binaryMessenger messenger: FlutterBinaryMessenger?
) {
_view = UIView()
tremendous.init()
let storyboard = UIStoryboard.init(identify: "playground", bundle: Bundle.init(for: PlaygroundViewController.self))
let controller = storyboard.instantiateViewController(withIdentifier: "playground") as! PlaygroundViewController
_view = controller.view
}