flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

refactor: add EagerGestureRecognizer to webview

Open stanislav216 opened this issue 11 months ago • 4 comments

stanislav216 avatar Mar 27 '24 09:03 stanislav216

What does this do?

daohoangson avatar Mar 27 '24 10:03 daohoangson

In the webview_flutter package, there is a gesture detector parameter. I passed EagerGestureRecognizer in this parameter to enable content scrolling inside the WebView if the HtmlWidget is inside a ListView. Perhaps you need to add this parameter to the HtmlWidget to allow developers to choose the gesture detector for the WebView themselves.

https://github.com/daohoangson/flutter_widget_from_html/assets/134495346/9f36c0c5-9da6-4e0a-8296-1aa2bb84c39c

https://github.com/daohoangson/flutter_widget_from_html/assets/134495346/9beeb556-a018-4a3f-b352-125763daa032

stanislav216 avatar Mar 27 '24 13:03 stanislav216

Here is an example of HTML iframe content that will not be scrollable if the HtmlWidget is inside a ListView.

stanislav216 avatar Mar 28 '24 06:03 stanislav216

@stanislav216 Thank you. It works for me

xalabax avatar Apr 02 '24 11:04 xalabax