Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个包含 WebView 的颤振应用程序,并且该应用程序支持暗模式。但是,问题是在暗模式下加载 webview 内容时,背景颜色为白色,并且一旦 webview 加载它就会变成暗模式。如果启用,有什么方法可以从暗模式开始?
网上推荐了各种解决方案(目前还没有flutter webview 透明后台启动的补丁)。
一个可靠的解决方法是将 webview 包装在索引 Stack 小部件中并显示黑色加载卡,直到 web 视图触发其页面加载事件,然后切换到 webview。