我将通过 WebviewScaffold
打开 AlertDialog
但它没有显示。当我打开 AlertDialog
时,它出现在 WebviewScaffold
下。
下面是我的代码,
child: Container(
child: WebviewScaffold(
url: agreementURL,
withZoom: false,
withLocalStorage: false,
hidden: true,
withJavascript: true,
),
),
当互联网不可用时,我将显示 AlertDialog
,但对话框出现在 WebviewScaffold
下。
谢谢。
最佳答案
每当你想显示对话框时,你都可以使用 hide 方法来隐藏 webview。
代码:
final FlutterWebviewPlugin webviewPlugin = new FlutterWebviewPlugin() ;
//显示对话框时
webviewPlugin. hide() ;
关于dart - 如何在 Flutter 中通过 WebviewScaffold 显示 AlertDialog?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55877340/