markdown_url_text 0.0.17 copy "markdown_url_text: ^0.0.17" to clipboard
markdown_url_text: ^0.0.17 copied to clipboard

A lightweight widget that parses a text with markdown-style formatted links, and makes makes them tappable.

example/lib/main.dart

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

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

class ExampleApp extends StatelessWidget {
  const ExampleApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: DemoPage(),
    );
  }
}

class DemoPage extends StatelessWidget {
  const DemoPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: MarkdownUrlText(
        'Learn more [link](https://leest.dev)',
        style: TextStyle(fontSize: 24),
        linkStyle: TextStyle(color: Colors.blue),
      ),
    );
  }
}
1
likes
110
pub points
1%
popularity

Publisher

verified publisherleest.dev

A lightweight widget that parses a text with markdown-style formatted links, and makes makes them tappable.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, url_launcher

More

Packages that depend on markdown_url_text