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

A Flutter package to format text like WhatsApp with bold, italic, strikethrough, underline, monospace, and custom colors.

WhatsApp Text Formatter #

WhatsApp Text Formatter is a Flutter package that allows you to format text similar to WhatsApp's rich text formatting. It supports bold, italic, strikethrough, monospace, underline, and custom colors.

Features #

  • Bold: **Bold Text**Bold Text
  • Italic: *Italic Text*Italic Text
  • Strikethrough: ~~Strikethrough~~Strikethrough
  • Monospace: `Monospace`Monospace
  • Underline: __Underline__
  • Custom Colors: {#ff0000}Red Text → Red Text (Hex color supported)

Getting Started #

To use this package, add the following dependency to your pubspec.yaml file:

dependencies:
  whatsapp_text_formatter: latest_version

Then, run:

flutter pub get

Usage #

Import the package:

import 'package:whatsapp_text_formatter/whatsapp_text_formatter.dart';

Example: #

WhatsAppTextFormatter(
text: "**Bold** *Italic* ~~Strikethrough~~ `Monospace` {#ff0000}Red",
style: TextStyle(fontSize: 16),
textAlign: TextAlign.start,
)

Example Output: #

Bold Italic ~~Strikethrough~~ `Monospace` Red

Additional Information #

  • Visit the GitHub repository for source code and contributions.
  • File issues or feature requests in the issue tracker.
  • Feel free to contribute and improve this package!

License #

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

3
likes
160
points
21
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package to format text like WhatsApp with bold, italic, strikethrough, underline, monospace, and custom colors.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on whatsapp_text_formatter