作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
new WebviewScaffold( -6ren">
我尝试在 Widget 中打开的 Webview 上覆盖一个 floatingActionButton。
"/widget": (_) => new WebviewScaffold(
clearCache: true,
clearCookies: true,
withJavascript: false,
url: selectedUrl,
appBar: new AppBar(
title: new Text("Widget webview"),
),
withLocalStorage: true,
/*floatingActionButton: new FloatingActionButton (
backgroundColor: Colors.amber,
onPressed: () {
Navigator.of(context).push(new MaterialPageRoute(
builder: (BuildContext context) => new AddLinkPage()));
},
child: new Icon(
Icons.add,
color: Colors.black,
),
),*/
)
这行不通。
persistentFooterButtons: <Widget>[]
是可能的, 但随后 View 将被切断
我使用 flutter_webview_plugin: 0.1.5
最佳答案
那是不可能的。
WebView 是显示为叠加层的 Android View ,因此始终显示在最顶层的内容。
关于webview - 如何在 WebviewScaffold 上覆盖 floatingActionButton,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50216272/
我是一名优秀的程序员,十分优秀!