-
-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<a> tag is not working #147
Comments
Hey can you please post your Html Widget. Is |
Sure! class NoticiasItemBody extends StatelessWidget {
Noticia noticia;
NoticiasItemBody(@required this.noticia);
@override
Widget build(BuildContext context) {
return Center(
child: ListView(
children: <Widget>[
Column(
children: <Widget>[
noticia.imagenUrl != ''
? Image.network(
noticia.imagenUrl,
)
: Container(),
Html(
data: noticia.content,
),
noticia.video != ''
? YoutubePlayer(
context: context,
videoId: YoutubePlayer.convertUrlToId(noticia.video),
flags: YoutubePlayerFlags(
hideControls: false,
autoPlay: false,
),
)
: Container(),
],
)
],
));
}
} The content (noticia.content) in HTML widget contains: <p style="margin-bottom: 20px; font-family: 'Roboto Slab', sans-serif; font-size: 18.9px;">
<a href="https://google.com" class="btn btn-alpha btn-sm" data-original-title="" title="">Esto es una prueba</a>
</p> |
|
In order for the onTap of the a tag to work, you must specify onLinkTap. For example
|
I have same issue that A tag is not working. I have added onLinkTap: (url){
When I click on the link text, following exception is thrown:
|
Any news? |
A fix for that would be of great help since I can't rely on the old parser as it has problems with word wrapping correctly. Using the new richtext parser it works great for rendering but I can't get events!! Please help us on this!! |
I am looking into this. Will have a fix out by the end of the year. |
This has been fixed in 1.0.0. Watch #122 for updates. |
the tag i am using for testing is the following one:
<a href="https://google.com" class="btn btn-alpha btn-sm" data-original-title="" title="">Esto es una prueba</a>
When I click on the tag in the rendered view it throws the following error:
The text was updated successfully, but these errors were encountered: