容器(子:列(子:[扩展(子:InAppWebView(initialUrl:selectedUrl,initialHeaders:{},initialOptions:InAppWebViewGroupOptions(crossPlatform:InAppWebViewOptions(debuggingEnabled:true,useOnDownloadStart:true),),onWebViewCreated:(InAppWebViewController控制器){ webView = controller; }, onLoadStart: (InAppWebViewController 控制器, String url) {}, onLoadStop: (InAppWebViewController 控制器, String url) {}, onDownloadStart: (controller, url) async { print("onDownloadStart $url"); final taskId = 等待 FlutterDownloader.enqueue( url: url, savedDir: (await getExternalStorageDirectory()).path, headers: {}, showNotification: true, openFileFromNotification: true, ); }, )) ]))
问问题
115 次
1 回答
0
您是否添加了所需的权限?如果没有,请尝试将这些权限添加到您的 AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
于 2021-04-20T03:28:46.953 回答