hyperlink 0.0.5 copy "hyperlink: ^0.0.5" to clipboard
hyperlink: ^0.0.5 copied to clipboard

A Flutter package for rendering text with clickable hyperlinks.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hyperlink/hyperlink.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text('Link Rich Text Example'),
      ),
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(20.0),
          child: HyperLink(
            linkCallBack: (link) {
              //Do whatsoever with the link
            },
            textStyle: const TextStyle(color: Colors.black, fontSize: 15),
            linkStyle: const TextStyle(
                color: Colors.red, fontWeight: FontWeight.w700, fontSize: 20),
            text:
                'Click here to visit [Google](https://www.google.com) or Click here to visit [Apple](https://www.apple.com)\t Happy Coding!!',
          ),
        ),
      ),
    ),
  ));
}
11
likes
140
points
1.27k
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for rendering text with clickable hyperlinks.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, url_launcher

More

Packages that depend on hyperlink