Skip to content

[Android] Auto hyperlink links in a Text widget #40505

@Kwasow

Description

@Kwasow

Use case

I'm parsing a JSON file and displaying a string part of it in a Text widget in my flutter app. That text contains links to external websites. As of my knowledge there is no way of formating those links to become hyperlinks. This can only be done with a RichText widget, but it requires the developer to specify the link manualy.

Proposal

Native android TextView allows to set the android:autoLink="web" and then the links are automatically formated and become clickable. An optional parameter should be added to the flutter Text widget that would enable that.

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilitycustomer: chalk (g3)frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework teamwould be a good packageSeparate Flutter package should be made for this

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions