Skip to content

Fix onLinkTap in selectable mode not working due to null anchorKey #778

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

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

tneotia
Copy link
Contributor

@tneotia tneotia commented Jul 29, 2021

Fixes #761

@erickok erickok merged commit e713e3e into Sub6Resources:master Jul 29, 2021
@noorhossain
Copy link

not work for me :

subtitle: Html(
              data: user.bangla_trans.replaceAll("\\n", "<br>"),
              onAnchorTap: (url, renderContext, attrs, element) async {
                print(element.toString());
                // Handle link tapped...
                if (url != null && element?.localName == "a") {
                  print(element.toString());
                  await showAlertDialog(context, element.toString());
                }
              },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] onLinkTap is not called while using SingleChildScrollView
3 participants