{"id":21174806,"url":"https://github.com/mindinventory/custom_rich_text","last_synced_at":"2025-12-28T19:43:57.283Z","repository":{"id":56827574,"uuid":"395598770","full_name":"Mindinventory/custom_rich_text","owner":"Mindinventory","description":"A custom rich text package that allow highlights and link reference to text.","archived":false,"fork":false,"pushed_at":"2021-08-24T05:21:49.000Z","size":39854,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T11:23:42.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.mindinventory.com/flutter-app-development.php","language":null,"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/Mindinventory.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}},"created_at":"2021-08-13T09:44:35.000Z","updated_at":"2025-01-06T09:18:32.000Z","dependencies_parsed_at":"2022-08-28T21:10:22.302Z","dependency_job_id":null,"html_url":"https://github.com/Mindinventory/custom_rich_text","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Fcustom_rich_text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Fcustom_rich_text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Fcustom_rich_text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2Fcustom_rich_text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mindinventory","download_url":"https://codeload.github.com/Mindinventory/custom_rich_text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243624107,"owners_count":20321029,"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":[],"created_at":"2024-11-20T16:56:19.567Z","updated_at":"2025-12-28T19:43:57.225Z","avatar_url":"https://github.com/Mindinventory.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom RichText\n\n\nCustomRichText is a package that allows highlighting and link reference to the text.\n\n\n![Image Plugin](https://github.com/Mindinventory/custom_rich_text/blob/master/assets/custom_rich_text.gif)\n\n## Key Features\n\n* Highlights email, phone number, web link, custom RegExp, certain sub-strings\n* Provides a call back on each highlighted string\n* Option for read more, read less and a call back for both\n* Allow text styling as per requirement\n\n## Note\n* If you want to highlight  any specific type of text then need to add the following on tap method.\n* If any link or email consists the provided sub-string then it will ignore that and will be highlighted as web link or email.\n\n## Getting Started\n\nTo use this package, add `custom_rich_text` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).\n\n    dependencies:\n      ...\n      custom_rich_text: any\n\nNow in your Dart code, you can use:\n\n     import 'package:custom_rich_text/custom_rich_text.dart';\n\n## Usage\n\n### Example\n    CustomRichText(\n      text: 'MindInventory is first-rate choice of the '\n          'clients worldwide. With sheer customer satisfaction in mind, we are profoundly '\n          'dedicated to developing highly intriguing apps that strictly meet the business '\n          'requirements and catering a wide spectrum of projects. Kickstart Your Digital '\n          'Journey Today and get all your queries and concerns answered by our business '\n          'development team. Our email address is sales@mindinventory.com, our website '\n          'https://www.mindinventory.com and our Contact number is +91-951-229-3490',\n      caseSensitive: false,\n      readMoreLessModel: ReadMoreLessModel(\n        trimLines: 3,\n        readMoreText: ' read more',\n        readLessText: ' read less',\n        readMoreLessStyle: kReadMoreLessStyle,\n      ),\n      textStyle: kTextStyle,\n      linkStyle: kLinkStyle,\n      highlightTermsStyle: kLinkStyle,\n      onWebLinkTap: (web) async {\n        await launch(web);\n      },\n      onPhoneTap: (phone) async {\n        await launch('tel:$phone');\n      },\n      onEmailTap: (email) async {\n        await launch('mailto:$email');\n      },\n      highlightTerms: [kMindinventory],\n      onTermTap: (text) async {\n        await launch('https://www.mindinventory.com/');\n      },\n    ),\n\n## Guideline for contributors\nContribution towards our repository is always welcome, we request contributors to create a pull request to the develop branch only.\n\n## Guideline to report an issue/feature request\nIt would be great for us if the reporter can share the below things to understand the root cause of the issue.\n- Library version\n- Code snippet\n- Logs if applicable\n- Device specification like (Manufacturer, OS version, etc)\n- Screenshot/video with steps to reproduce the issue\n\n# LICENSE!\nCustom RichText is [MIT-licensed](https://github.com/Mindinventory/custom_rich_text/blob/master/LICENSE \"MIT-licensed\").\n\n# Let us know!\nWe’d be really happy if you send us links to your projects where you use our component. Just send an email to sales@mindinventory.com And do let us know if you have any questions or suggestion regarding our work.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindinventory%2Fcustom_rich_text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindinventory%2Fcustom_rich_text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindinventory%2Fcustom_rich_text/lists"}