whatsapp_text_formatter 1.1.0 copy "whatsapp_text_formatter: ^1.1.0" to clipboard
whatsapp_text_formatter: ^1.1.0 copied to clipboard

A Flutter package for WhatsApp-style text formatting. Supports: - **Bold** (`**text**`) - *Italic* (`_text_`) - ~~Strikethrough~~ (`~~text~~`) - `Monospace` (`` `text` ``) - Bulleted Lists (`* text` o [...]

example/main.dart

import 'package:flutter/material.dart';
import 'package:whatsapp_text_formatter/whatsapp_text_formatter.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('WhatsApp Text Formatter')),
        body: const Center(
          child: WhatsAppTextFormatter(
            text: """
**Bold**  
_Italic_  
~~Strikethrough~~  
```Monospace```  
`Inline Code`  
* Bullet Point  
- Another Bullet Point
1. Numbered List  
> Quoted Text  
""",
            style: TextStyle(
              fontSize: 16,
            ),
            textAlign: TextAlign.start,
          ),
        ),
      ),
    );
  }
}
3
likes
150
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for WhatsApp-style text formatting. Supports: - **Bold** (`**text**`) - *Italic* (`_text_`) - ~~Strikethrough~~ (`~~text~~`) - `Monospace` (`` `text` ``) - Bulleted Lists (`* text` or `- text`) - Numbered Lists (`1. text`) - Blockquotes (`> text`) - Inline Code (` `text` `)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on whatsapp_text_formatter