markup_text_plus 0.2.0 copy "markup_text_plus: ^0.2.0" to clipboard
markup_text_plus: ^0.2.0 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),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
2
likes
160
pub points
54%
popularity

Publisher

verified publisher4akloon.tech

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, url_launcher

More

Packages that depend on markup_text_plus