web_hyperlink 0.1.0
web_hyperlink: ^0.1.0 copied to clipboard
A lightweight Flutter Web widget for rendering clickable HTML hyperlinks.
web_hyperlink #
A lightweight Flutter Web widget for rendering clickable HTML hyperlinks with customizable text, URL, styling, and browser-tab behavior.
Features #
- 🔗 Create clickable HTML hyperlinks in Flutter Web
- 🎨 Customize hyperlink color
- 📏 Customize font size
- 🔤 Customize font weight
- 🖋️ Customize font family
- ➖ Optional underline
- 🌐 Open links in the current tab
- 🆕 Open links in a new browser tab
- 📱 Multiple hyperlinks can be used on the same page
- ⚡ Lightweight and simple to use
- 🌍 Designed specifically for Flutter Web
This package is specifically designed for Flutter Web applications.
Security #
When openInNewTab is enabled, the widget uses:
target="_blank" rel="noopener noreferrer"
This helps prevent the newly opened page from accessing the original page through window.opener.
Why web_hyperlink? #
Flutter Web applications sometimes need native browser hyperlink behavior.
web_hyperlink provides a simple Flutter widget around a native HTML element while allowing developers to customize common hyperlink properties.
Instead of manually creating platform views and HTML elements, you can simply use:
WebHyperlink( text: 'Visit Website', url: 'https://example.com', );
📸 Screenshot #
[Web Hyperlink Demo]
Installation #
Add web_hyperlink to your pubspec.yaml:
dependencies:
web_hyperlink: ^0.1.0
Support #
If web_hyperlink is useful for your Flutter Web project, consider giving the package a ⭐ on pub.dev.
Your feedback and suggestions can help improve future versions.
Contact #
For questions, suggestions, or support:
Email: itsmaddeveloper@gmail.com