bubble_box
0.5.3, released 4 years ago by an unverified publisher
A customizable bubble-shaped container widget for Flutter.
WASM-ready
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.
- gradient_borders
Gradient borders for Flutter inputs and containers
82Compare - r_dotted_line_border
A Flutter decoration box package for rendering dotted line borders.
50Compare - dotted_line
A Flutter widget to draw customizable dotted lines.
75Compare - flutter_in_app_pip
Provides in-app Picture-in-Picture support with customizable widget
54Compare