Package selection guidance compiled from public package information, community data, and project usage.
A Flutter widget that mimics the appearance of a speech bubble, commonly used in chat interfaces or UIs requiring conversational elements. It provides a simple and customizable way to display text in a rounded, pointed container resembling real-life speech bubbles. The widget supports various configurations such as alignment, tail position, and styling, making it ideal for messaging apps or interactive UIs. It is lightweight and integrates seamlessly into existing Flutter projects.
Use cases
Chat interfaces
User feedback displays
Interactive tutorials
Notification popups
Game dialogue boxes
Key features
Customizable tail position
Rounded corners with pointer
Flexible alignment options
Lightweight and easy to integrate
Supports text styling
Suitable for
Messaging apps
Educational apps
UI prototyping
Simple chat components
Social media features
Considerations
Limited to basic speech bubble design
No built-in animation support
Requires manual handling of dynamic content sizing
Not suitable for complex dialog systems
Tail positioning may need adjustment on small screens
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
SpeechBubble
A flutter widget that emulates a speech bubble.
This widget is modeled after the red Instagram notification popups.
Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import'package:speech_bubble/speech_bubble.dart';
Usage
Creates a widget that emulates a speech bubble.
Could be used for a tooltip, or as a pop-up notification, etc.
Properties
child -> Widget
The child contained by the SpeechBubble.
nipLocation -> NipLocation
The location of the nip of the speech bubble.
Use the NipLocation enum, either TOP, RIGHT, BOTTOM, or LEFT.
The nip will automatically center to the side that it is assigned.
color -> Color
The color of the body of the SpeechBubble and nip.
Defaultly red.
borderRadius -> double
The borderRadius of the SpeechBubble.
The SpeechBubble is built with a circular border radius on all 4 corners.
height -> double
The explicitly defined height of the SpeechBubble.
The SpeechBubble will defaultly enclose its child.
width -> double
The explicitly defined width of the SpeechBubble.
The SpeechBubble will defaultly enclose its child.
padding -> Widget
The padding widget between the child and the edges of the SpeechBubble.