【问题标题】:WebviewScaffold not scrolling when keyboard opens键盘打开时WebviewScaffold不滚动
【发布时间】:2020-08-21 06:19:35
【问题描述】:

当键盘打开时,我在 Flutter 中的 WebviewScaffold 没有滚动。我将如何解决这个问题? 这是我的代码

WebviewScaffold(
          url: url,
          scrollBar: true,
          clearCache: false,
          clearCookies: false,
          withJavascript: true,
          geolocationEnabled: true,
          // run javascript
          withZoom: false,
          // if you want the user zoom-in and zoom-out
          hidden: false,
          // put it true if you want to show CircularProgressIndicator while waiting for the page to load
          appCacheEnabled: true,
        )

【问题讨论】:

    标签: flutter dart scroll webviewscaffold


    【解决方案1】:
    Scaffold(
          body: ConstrainedBox(
            constraints: BoxConstraints(maxHeight: MediaQuery.of(context).size.height),
            child: Container(
              child: <your widget>,
    
            ),
          ),
        )
    

    【讨论】:

      【解决方案2】:

      你可以从这里获得一些帮助,你是这个项目中的 webview:

      https://github.com/npm-ued/flutter_webview_plugin

      这个问题一直是reportedfixed

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-12-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-12-17
        • 2022-10-09
        • 1970-01-01
        相关资源
        最近更新 更多