【问题标题】:The flutter app using 'webview_flutter' or 'flutter_inappbrowser' is stuck when I slide right back to the previous page当我滑回上一页时,使用“webview_flutter”或“flutter_inappbrowser”的颤振应用程序卡住了
【发布时间】:2019-04-12 01:44:31
【问题描述】:

有两个页面包含webview,它们的路由顺序是A到B。 在 B 页面向右缓慢滑动返回 A 时,应用卡在中间状态,A 和 B 各显示一半。

我发现了以下规则: 1. A和B都必须包含webview; 2、A中的webview可以是任意高度,甚至为0; 3.只有滑动手指在B的webview范围内才会出现问题。

webview 库是flutter_inappbrowser: ^0.6.0,用最简单的方法就可以出现问题。

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 200,
      child: InAppWebView(
        initialUrl: 'https://www.google.com',
      ),
    );
  }

【问题讨论】:

  • 谁能帮帮我?

标签: dart flutter navigator


【解决方案1】:

有一个新版本的插件发布,它将帮助您。

使用flutter_inappbrowser:^1.1.1

【讨论】:

  • 对不起,新版本也有问题。
  • 我也用过 flutter_inappwebview: ^2.1.0 但还是不行。有什么解决办法吗?谢谢
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-07-13
  • 2021-03-06
  • 1970-01-01
  • 2018-12-16
  • 1970-01-01
  • 2013-08-17
  • 2022-07-31
相关资源
最近更新 更多