text_link_recognizer 0.0.1 copy "text_link_recognizer: ^0.0.1" to clipboard
text_link_recognizer: ^0.0.1 copied to clipboard

A Flutter package to recognize and handle clickable text links.

example/lib/main.dart

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

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Text Link Recognizer Demo'),
        ),
        body: const Center(
          child: Padding(
            padding: EdgeInsets.all(16.0),
            child: TextLinkRecognizer(
              text: 'I lend my voice with https://squairr.com and get my meals from https://foodknot.com',
              textStyle: TextStyle(color: Colors.black),
              linkStyle: TextStyle(color: Colors.blue, decoration: TextDecoration.underline),
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
140
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to recognize and handle clickable text links.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, mockito, url_launcher

More

Packages that depend on text_link_recognizer