Skip to content
pubscout

bubble_box

0.5.3, released 4 years ago by an unverified publisher

A customizable bubble-shaped container widget for Flutter.

WASM-ready
$ flutter pub add bubble_box
Source repository

What it does

Provides a container with a speech‑bubble shape that can be styled with borders, gradients, dashed lines, and custom arrow positions. It adapts its size to its child and works on all Flutter platforms.

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

Use it when

  • You need a bubble or speech‑balloon UI element around text or other widgets
  • You want easy customization of border style, gradient background, or arrow direction without writing custom painters

Skip it when

  • You require complex animations or interactive chat‑bubble behavior
  • You need a full chat UI framework rather than a single container

Strengths

  • Highly customizable appearance (border, gradient, dash, arrow direction)
  • Supports all Flutter platforms (mobile, web, desktop)
  • Adaptive sizing based on content

Weaknesses

  • Limited to static container – no built‑in animation or interaction logic
  • Potential positioning bugs noted in changelog
  • Documentation is brief

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
BubbleBox(
  maxWidth: MediaQuery.of(context).size.width * 0.8,
  shape: BubbleShapeBorder(
    border: BubbleBoxBorder(color: Colors.blue, width: 3),
    direction: BubbleDirection.right,
    position: const BubblePosition.center(0),
  ),
  backgroundColor: Colors.green.withOpacity(0.8),
  child: Text('I can customize the color and width of the border, the position of the sharp corner of the bubble and the offset of the sharp corner'),
);

Alternatives

Packages that do the same job and could replace bubble_box.