最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter WebView iOS swipe-back gesture causes the web page to become unclickable - Stack Overflow

programmeradmin3浏览0评论

In iOS, when using the swipe-back gesture to navigate back but then canceling the gesture midway, the buttons on the WebView page become unclickable. How can this issue be resolved? The video link

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text("title"),
      ),
      body: Container(
        color: Colors.red,
        child: InAppWebView(
          initialOptions: InAppWebViewGroupOptions(
            android: AndroidInAppWebViewOptions(
              useHybridComposition: true,
            ),
            crossPlatform: InAppWebViewOptions(
              useShouldOverrideUrlLoading: true,
              transparentBackground: true,
              javaScriptEnabled: true,
              mediaPlaybackRequiresUserGesture: false,
            ),
            ios: IOSInAppWebViewOptions(),
          ),
          initialUrlRequest: URLRequest(url: Uri.parse(";)),
        ),
      ),
    );
  }
发布评论

评论列表(0)

  1. 暂无评论