We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前引入这个插件会出现两个FlutterEngine在跑,根本原因是 flutter_webview_plugin 中的下面这段代码
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar { channel = [FlutterMethodChannel methodChannelWithName:CHANNEL_NAME binaryMessenger:[registrar messenger]]; UIViewController *viewController = [UIApplication sharedApplication].delegate.window.rootViewController; FlutterWebviewPlugin* instance = [[FlutterWebviewPlugin alloc] initWithViewController:viewController]; [registrar addMethodCallDelegate:instance channel:channel]; }
直接获取 rootViewController 作为默认的 FlutterViewController,太过于简单粗暴,正确的方式应该是从 FlutterEngine 获取
rootViewController
FlutterViewController
The text was updated successfully, but these errors were encountered:
无法适配,需要 flutter_webview_plugin 本身作修改
Sorry, something went wrong.
这个插件看似已经没人维护了,不管了
No branches or pull requests
目前引入这个插件会出现两个FlutterEngine在跑,根本原因是 flutter_webview_plugin 中的下面这段代码
直接获取
rootViewController
作为默认的FlutterViewController
,太过于简单粗暴,正确的方式应该是从 FlutterEngine 获取The text was updated successfully, but these errors were encountered: