-
(void)pushFlutterViewController_EventChannel {
FlutterViewController* flutterViewController = [[FlutterViewController alloc] initWithProject:nil nibName:nil bundle:nil];
[flutterViewController setInitialRoute:@"test?id=47"];
flutterViewController.splashScreenView.hidden = YES;
[GeneratedPluginRegistrant registerWithRegistry:flutterViewController];
// self.navigationController.navigationBarHidden = YES;
[self.navigationController pushViewController:flutterViewController animated:NO];
}
在原生中需要跳转到flutter指定页现出现MissingPluginException错误:
image.png
解决方法-手动注册该插件:
[GeneratedPluginRegistrant registerWithRegistry:flutterViewController];
Flutter(iOS):原生跳转flutter页面出现Unhandled Exception: MissingPluginException解决方案
©著作權歸作者所有,轉載或內容合作請聯系作者
推薦閱讀更多精彩內容
- iOS开发中,页面传值是很常见的,但是页面传值你究竟知道多少呢?笔者这篇文章就是给大家介绍一下页面传值的具体方式,...