Closed emresakar closed 2 years ago
I found the solution in WebView. If you are having problems like me, try the code below.
panel: Container(
margin: EdgeInsets.only(top: GenericSizes.iconContainerSize*2),
child: WebView(
initialUrl: 'https://www.google.com.tr',
javascriptMode: JavascriptMode.unrestricted,
gestureRecognizers: Set()..add(Factory<VerticalDragGestureRecognizer>(() => VerticalDragGestureRecognizer())),
),
),
Hello,
I am trying to use a WebView inside the panelBuilder. Scrolling up is okay, but when I try to scroll down, cannot scroll in WebView, instead, panel is scrolling down and closing. As a temp solution, I set the isDraggable to false. I am opening and closing panel via a button in header. My panelBuilder function:
and my header:
Is there any possible way to disable dragging for panelBuilder, and enable it only for header widget? When header is dragging, whole panel will be moving up or down. Thanks to that, we can fix any scrolling issues that can happen in panel.
Also if WebView is used: Snapping is working a bit weird. While panel is fully opened and WebView is scrolling up, panel closes itself to snapping point. panel: WebView() is not working. Cannot scroll in WebView.
I am not a Flutter expert, maybe I am doing things badly. That is why I wanted to ask you guys, have can I correctly use a WebView widget inside the panel?
Thanks