flutter_widget_from_html
flutter_widget_from_html copied to clipboard
refactor: add EagerGestureRecognizer to webview
What does this do?
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
Here is an example of HTML iframe content that will not be scrollable if the HtmlWidget is inside a ListView.
@stanislav216 Thank you. It works for me