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 [...]

Here’s a refined version with improved readability, consistency, and minor corrections:


WhatsApp Text Formatter #

WhatsApp Text Formatter is a Flutter package that enables WhatsApp-style rich text formatting. It supports bold, italic, strikethrough, monospace, inline code, bulleted lists, numbered lists, and blockquotes.

Features #

  • Bold: *Bold Text*Bold Text
  • Italic: _Italic Text_Italic Text
  • Strikethrough: ~Strikethrough~Strikethrough
  • Monospace: ```Monospace```Monospace
  • Inline Code: `Inline Code`Inline Code
  • Bulleted List:
    • * Item 1 or - Item 1
      • Item 1
      • Item 2
  • Numbered List:
    • 1. Item 1
      1. Item 1
      2. Item 2
  • Blockquote:
    • > Quote Text

      Quote Text

Installation #

Add the package to your pubspec.yaml:

dependencies:
  whatsapp_text_formatter: latest_version

Then, fetch the dependencies:

flutter pub get

Usage #

Import the package:

import 'package:whatsapp_text_formatter/whatsapp_text_formatter.dart';

Example #

WhatsAppTextFormatter(
text: """
**Bold**  
_Italic_  
~~Strikethrough~~  
```Monospace```  
`Inline Code`  
* Bullet Point  
- Another Bullet  
1. Numbered List  
> Quoted Text  
""",
style: TextStyle(
fontSize: 16,
),
textAlign: TextAlign.start,
),

Example Output #

*Bold* _Italic_ ~Strikethrough~ `Monospace` `Inline Code`
- Bullet Point
1. Numbered List
> Quoted Text

Additional Information #

  • Check out the GitHub repository for the source code and contributions.
  • Report issues or request features in the issue tracker.
  • Contributions are welcome! Feel free to improve and expand this package.

License #

This package is licensed under the MIT License. See the LICENSE file for details.


This version improves clarity, structure, and consistency while ensuring Markdown renders correctly. Let me know if you need further adjustments! 🚀

3
likes
150
points
38
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