markup_text_plus 0.2.2 copy "markup_text_plus: ^0.2.2" to clipboard
markup_text_plus: ^0.2.2 copied to clipboard

Flutter widget to use Markup to easily create formatted Text with colors, style and links.

example/lib/main.dart

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

void main() {
  runApp(const App());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const MarkupText("(b)Markup(/b) (i)Example(/i)"),
        ),
        body: const Padding(
          padding: EdgeInsets.all(16),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              MarkupText(
                "This is a (b)bold(/b) text (a https://flutter.dev)with a link(/a),"
                " an (u)underlined(/u) word and (color ffff0000)colored(/color) words"
                " (color FF7C4DFF)here(/color) and (color FF4CAF50)there(/color).",
                style: MarkupTextStyle(
                  textStyle: TextStyle(fontSize: 20),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
3
likes
140
points
111
downloads

Documentation

API reference

Publisher

verified publisher4akloon.tech

Weekly Downloads

Flutter widget to use Markup to easily create formatted Text with colors, style and links.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, url_launcher

More

Packages that depend on markup_text_plus