web_hyperlink 1.0.0 copy "web_hyperlink: ^1.0.0" to clipboard
web_hyperlink: ^1.0.0 copied to clipboard

Platformweb

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.

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: ^1.0.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

1
likes
150
points
403
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter Web widget for rendering clickable HTML hyperlinks.

License

MIT (license)

Dependencies

flutter, http, web

More

Packages that depend on web_hyperlink