new WebviewScaffold( -6ren">
gpt4 book ai didi

webview - 如何在 WebviewScaffold 上覆盖 floatingActionButton

转载 作者:IT王子 更新时间:2023-10-29 07:14:04 25 4
gpt4 key购买 nike

我尝试在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com