我尝试在小工具中打开的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>[]可以做到这一点,但之后视图将被切断
我使用flutter_webview_plugin: 0.1.5
发布于 2018-05-07 22:11:48
这不可能。
WebView是一个Android视图,以覆盖的形式显示,因此总是显示在最上面的内容。
https://stackoverflow.com/questions/50216272
复制相似问题