{"id":18910123,"url":"https://github.com/cretezy/flutter_linkify","last_synced_at":"2025-04-12T23:42:29.832Z","repository":{"id":43673631,"uuid":"148884627","full_name":"Cretezy/flutter_linkify","owner":"Cretezy","description":"Turns text URLs and emails into clickable inline links in text for Flutter","archived":false,"fork":false,"pushed_at":"2024-03-26T23:29:57.000Z","size":472,"stargazers_count":269,"open_issues_count":47,"forks_count":103,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T23:42:25.231Z","etag":null,"topics":["dart","flutter","linkify"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/flutter_linkify","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cretezy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Cretezy"}},"created_at":"2018-09-15T08:37:39.000Z","updated_at":"2024-08-16T01:23:26.000Z","dependencies_parsed_at":"2024-06-18T13:39:09.500Z","dependency_job_id":"a518e80b-3e1c-43a6-9c9d-bb3e185fd12b","html_url":"https://github.com/Cretezy/flutter_linkify","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cretezy%2Fflutter_linkify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cretezy%2Fflutter_linkify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cretezy%2Fflutter_linkify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cretezy%2Fflutter_linkify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cretezy","download_url":"https://codeload.github.com/Cretezy/flutter_linkify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647257,"owners_count":21139081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","linkify"],"created_at":"2024-11-08T09:41:14.114Z","updated_at":"2025-04-12T23:42:29.809Z","avatar_url":"https://github.com/Cretezy.png","language":"C++","funding_links":["https://github.com/sponsors/Cretezy"],"categories":[],"sub_categories":[],"readme":"# `flutter_linkify` [![pub package](https://img.shields.io/pub/v/flutter_linkify.svg)](https://pub.dartlang.org/packages/flutter_linkify)\n\nTurns text URLs and emails into clickable inline links in text for Flutter.\n\nRequired Dart \u003e=2.17 (has null-safety support).\n\n[Pub](https://pub.dartlang.org/packages/flutter_linkify) - [API Docs](https://pub.dartlang.org/documentation/flutter_linkify/latest/) - [GitHub](https://github.com/Cretezy/flutter_linkify)\n\n## Install\n\nInstall by adding this package to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  flutter_linkify: ^6.0.0\n```\n\nIt is highly recommend that you also add a dependency on [`url_launcher`](https://pub.dartlang.org/packages/url_launcher) to open links in the browser/OS.\n\n## Usage\n\nBasic:\n\n```dart\nimport 'package:flutter_linkify/flutter_linkify.dart';\n\nLinkify(\n  onOpen: (link) =\u003e print(\"Clicked ${link.url}!\"),\n  text: \"Made by https://cretezy.com\",\n);\n```\n\n### Styling\n\nAdd a style to non-links (yellow) or links (red), and open in browser using [`url_launcher`](https://pub.dartlang.org/packages/url_launcher):\n\n```dart\nimport 'package:flutter_linkify/flutter_linkify.dart';\nimport 'package:url_launcher/url_launcher.dart';\n\nLinkify(\n  onOpen: (link) async {\n    if (!await launchUrl(Uri.parse(link.url))) {\n      throw Exception('Could not launch ${link.url}');\n    }\n  },\n  text: \"Made by https://cretezy.com\",\n  style: TextStyle(color: Colors.yellow),\n  linkStyle: TextStyle(color: Colors.red),\n);\n```\n\nAll `RichText` options are available for use.\n\n### Linkify Options\n\nBy default, humanization (removal of `http://` or `https://` from the start of the URL) is enabled. You may disable it by passing `options`:\n\n```dart\nLinkify(\n  text: \"Made by https://cretezy.com\",\n  options: LinkifyOptions(humanize: false),\n);\n```\n\n### Selectable Text\n\nUse the `SelectableLinkify` widget to create selectable text. All `SelectableText` options are available for use.\n\n```dart\nSelectableLinkify(\n  text: \"Made by https://cretezy.com\\n\\nMail: example@gmail.com\",\n);\n```\n\n### Advance\n\nIn the `onOpen` callback, a `LinkableElement` is passed in.\nYou can check if it is a `UrlElement` or `EmailElement` using `is` for custom handling.\n\nYou can enable parsing of only some link types using the `linkifiers` option. URL and email are enabled by default.\n\nFull example can be found at [`example/lib/main.dart`](example/lib/main.dart).\n\n![Example Screenshot](https://github.com/Cretezy/flutter_linkify/raw/master/example/screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcretezy%2Fflutter_linkify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcretezy%2Fflutter_linkify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcretezy%2Fflutter_linkify/lists"}