You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wasn't sure if this was the intention or a bug.
using version 0.8.2
example code
Html(
onLinkTap: (url){print('link tap: $url');},
data: """
<div>
<h1>Demo Page</h1>
<p>This is a fantastic <a href="https://www.google.com/">nonexistent product</a> that you should buy!</p>
<h2>Pricing</h2>
<p>Lorem ipsum <b>dolor</b> sit amet.</p>
<h2>The Team</h2>
<p>There isn't <i>really</i> a team...</p>
<h2>Installation</h2>
<p>You <u>cannot</u> install a <a href="https://www.google.com/">nonexistent product!</a></p>
</div>
),
result: console prints url when link is tapped
expected result: device webbrowser to be opened sending user to link
My work around is to use another package 'url_launcher' to open the webbrowser
Yes, tapping a link only calls the callback and is not supposed to open a browser out of the box. The goal of this package is just to provide a very simple way to render html. Anything beyond that is up to the implementer, so using url_launcher is exactly what you need to do.
I wasn't sure if this was the intention or a bug.
using version 0.8.2
example code
result: console prints url when link is tapped
expected result: device webbrowser to be opened sending user to link
My work around is to use another package 'url_launcher' to open the webbrowser
The text was updated successfully, but these errors were encountered: