简体   繁体   English

在Flutter中,有没有办法将小部件置于WebView之上以阻止WebView的某些部分

[英]In Flutter, is there a way to put a widget on top of a WebView to block some part of the WebView

In Flutter, I tried several WebView plugins and tried to use "Stack", "Positioned" so that I could put a block(Like a Card or anything) on top of a WebView and failed to succeed. 在Flutter中,我尝试了几个WebView插件,并尝试使用“Stack”,“Positioned”,以便我可以在WebView上放置一个块(如卡片或任何东西),但未能成功。 WebView is always on the top before other widgets. WebView始终位于其他小部件之前。

I guess there is no way to do so by using Flutter. 我想使用Flutter无法做到这一点。 Am I right? 我对吗?

Tried flutter_webview_plugin 尝试了flutter_webview_plugin

flutter_webview_plugin doesn't support this, as is documented in its readme . flutter_webview_plugin不支持这一点,正如其自述文件中所述。 But webview_flutter should support it. 但是webview_flutter应该支持它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM