akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.38k stars 381 forks source link

panelBuilder with WebView does not scroll correctly #118

Closed fvisticot closed 4 years ago

fvisticot commented 4 years ago

The panelBuilder display a WebView (webview_flutter)

I do not see any ScrollController in the WebView package.

Any solution ? advice ?

I find a solution:

Widget _buildWebView(BuildContext context, ScrollController sc) {
    final height = MediaQuery.of(context).size.height;
    return SingleChildScrollView(
        controller: sc,
        child: ConstrainedBox(
            constraints: BoxConstraints(maxHeight: _maxHeight ?? height),
            child: GenericWebviewPage(
                onPageFinished: (double height) {
                  setState(() {
                    _maxHeight = height;
                  });
                },
                url: 'https://google.com')));
  }
akshathjain commented 4 years ago

Duplicate of #90. Closing this issue. Please refer to that thread for updates.