text_link 0.0.1 text_link: ^0.0.1 copied to clipboard
This Flutter package is designed to simplify text rendering with embedded URLs. It allows users to tap on any URL in the text (even at the beginning, end, or if the URL format is incorrect) to open the link.
LinkText Flutter Package
Overview
The LinkText package provides a simple yet powerful way to handle clickable links within textual content in Flutter. It transforms URLs embedded in text strings into tappable inline links and provides visual distinction through customizable styling.
Features
Auto-Detection: Automatically identifies URLs within a string and wraps them as tappable links. Customizable Styling: Provides the ability to customize the style of regular text and link text independently. URL Launch: Clicking on links can open the URL either within the application or launch an external application, depending on the provided LaunchMode. Integrated 'Read More/Less' Support: If used within the ReadMoreText widget, long texts can be collapsed with the option to expand. The expanded view reveals the complete text with embedded links.
Usage Example
LinkText( text: "Check out www.openai.com for more information.", style: TextStyle(color: Colors.black), linkStyle: TextStyle(color: Colors.blue, decoration: TextDecoration.underline), mode: LaunchMode.inAppWebView, )
Contribute
This package is open for contributions! We accept pull requests and issues on our GitHub page.
This is a very basic documentation. Depending on the complexity and features of your package, you might want to add more sections like Installation, Examples, API Reference, etc.