{"id":17184272,"url":"https://github.com/anupkumarpanwar/linkable","last_synced_at":"2025-04-13T18:04:17.469Z","repository":{"id":44540126,"uuid":"268793804","full_name":"AnupKumarPanwar/Linkable","owner":"AnupKumarPanwar","description":"A Flutter widget to dynamically add links to your text.","archived":false,"fork":false,"pushed_at":"2024-03-14T15:43:36.000Z","size":269,"stargazers_count":17,"open_issues_count":11,"forks_count":21,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T22:46:20.381Z","etag":null,"topics":["flutter","link","text"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/linkable","language":"Dart","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/AnupKumarPanwar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-02T12:23:39.000Z","updated_at":"2024-02-04T02:41:26.000Z","dependencies_parsed_at":"2023-10-20T17:29:42.532Z","dependency_job_id":null,"html_url":"https://github.com/AnupKumarPanwar/Linkable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnupKumarPanwar%2FLinkable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnupKumarPanwar%2FLinkable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnupKumarPanwar%2FLinkable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnupKumarPanwar%2FLinkable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnupKumarPanwar","download_url":"https://codeload.github.com/AnupKumarPanwar/Linkable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240109566,"owners_count":19749171,"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":["flutter","link","text"],"created_at":"2024-10-15T00:42:52.404Z","updated_at":"2025-02-23T21:31:36.505Z","avatar_url":"https://github.com/AnupKumarPanwar.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linkable [![pub package](https://img.shields.io/pub/v/linkable.svg)](https://pub.dartlang.org/packages/linkable)\n\nA Flutter widget to add links to your text. By default, the `Text` or `RichText` widgets render the\nURLs in them as simple text which are not clickable. So, `Linkable` widget is a wrapper\nover `RichText` which allows you to render links that can be clicked to redirect to the URL. That\nmeans that a `Linkable` widget supports all the attributes of a `RichText` Widget.\n\nCurrently linkable supports the following types:\n\n- Web URL (https://www.github.com/anupkumarpanwar)\n- Emails (mailto:1anuppanwar@gmail.com)\n- Phone numbers (tel:+918968894728)\n\nNote: You don't need to specify the URL scheme (mailto, tel etc). The widget will parse it\nautomatically.\n\n## Install\n\nTo install the package, add the following dependency to your `pubspec.yaml`\n\n```\ndependencies:\n  linkable: ^3.0.2\n  url_launcher: ^6.1.14\n```\n\n### Android\n\nStarting from API30 (Android 11), your Android app has to list all apps it interacts with.\n\nThe following is required in `AndroidManifest.xml` or links will fail to launch.\n\n```\n\u003cmanifest\u003e\n\n    \u003c!-- Nest within the manifest element, not the application element--\u003e\n    \u003cqueries\u003e\n        \u003cintent\u003e\n            \u003caction android:name=\"android.intent.action.VIEW\" /\u003e\n            \u003cdata android:scheme=\"https\" /\u003e\n        \u003c/intent\u003e\n        \u003cintent\u003e\n            \u003caction android:name=\"android.intent.action.DIAL\" /\u003e\n            \u003cdata android:scheme=\"tel\" /\u003e\n        \u003c/intent\u003e\n        \u003cintent\u003e\n            \u003caction android:name=\"android.intent.action.SEND\" /\u003e\n            \u003cdata android:mimeType=\"*/*\" /\u003e\n        \u003c/intent\u003e\n    \u003c/queries\u003e\n\n    \u003capplication\u003e\n        ....\n    \u003c/application\u003e\n\u003c/manifest\u003e\n```\n\n### iOS\n\nAdd the `LSApplicationQueriesSchemes` entries in your `Info.plist` file.\n\n```\n\u003ckey\u003eLSApplicationQueriesSchemes\u003c/key\u003e\n\u003carray\u003e\n  \u003cstring\u003etel\u003c/string\u003e\n\u003c/array\u003e\n```\n\n## Usage\n\n### Basic\n\n```\nimport 'package:linkable/linkable.dart';\n\nLinkable(\n\ttext:\n\t\"Hi!\\nI'm Anup.\\n\\nYou can email me at 1anuppanwar@gmail.com.\\nOr just whatsapp me @ +91-8968894728.\\n\\nFor more info visit: \\ngithub.com/anupkumarpanwar \\nor\\nhttps://www.linkedin.com/in/anupkumarpanwar/\",\n);\n```\n\n### Attributes\n\n| Key  \t\t\t\t          | Description   \t\t\t\t\t\t\t\t\t\t\t\t   \t                             |\n|--------------------|------------------------------------------------------------|\n| `text` \t\t\t         | The text to be displayed in the widget.  \t\t\t\t\t\t\t           |\n| `textColor` \t\t     | Color of the non-link text. (default: black)\t\t\t\t\t\t         |\n| `linkColor` \t\t     | Color of the links. (default: blue) \t\t\t\t\t\t\t\t               |\n| `style` \t\t\t        | TextStyle to be applied on the widget. \t\t\t\t\t\t\t             |\n| `textAlign` \t\t     | TextAlign value. (default: TextAlign.start)\t\t\t\t\t\t          |\n| `textDirection` \t  | Determines the order to lay children out horizontally. \t\t\t |\n| `maxLines` \t\t      | Maximum number of lines to be displayed. \t\t\t\t\t\t            |\n| `textScaleFactor`\t | The number of font pixels for each logical pixel. \t\t\t\t     |\n\n## Screenshot\n\n![Screenshot](./example/screenshot.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanupkumarpanwar%2Flinkable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanupkumarpanwar%2Flinkable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanupkumarpanwar%2Flinkable/lists"}