Skip to content
pubscout

flutter_chat_bubble

2.0.2, released 4 years ago by an unverified publisher

Widget for customizable chat bubbles with multiple clipper styles

WASM-ready
$ flutter pub add flutter_chat_bubble
Source repository

What it does

Provides a ChatBubble widget that can render various chat bubble shapes such as WhatsApp or Telegram styles. It supports customization of color, alignment, margin, padding and child content.

AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building a messaging or chat interface
  • Need multiple bubble styles without custom drawing
  • Want null‑safe, Flutter‑only implementation

Skip it when

  • You already have a custom bubble implementation
  • You need advanced features like message status or typing indicators

Strengths

  • Wide range of pre‑built clipper styles
  • Null‑safe and fully documented API
  • Easy to integrate via pubspec
  • No external dependencies

Weaknesses

  • Limited to bubble UI only, no message list or state management
  • No built‑in support for avatars or timestamps
  • Documentation is minimal

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency to pubspec and import package

ChatBubble(
  clipper: ChatBubbleClipper1(type: BubbleType.sendBubble),
  alignment: Alignment.topRight,
  margin: EdgeInsets.only(top: 20),
  backGroundColor: Colors.blue,
  child: Container(
    constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * 0.7),
    child: Text(
      "Hello world",
      style: TextStyle(color: Colors.white),
    ),
  ),
)

Alternatives

Packages that do the same job and could replace flutter_chat_bubble.