BubbleShape constructor
BubbleShape({
- BubblePosition position = BubblePosition.Bottom,
- double borderRadius = 12,
- double arrowHeight = 10,
- double arrowWidth = 10,
- double arrowPositionPercent = 0.5,
Creates a new BubbleShape with customizable arrow and styling options.
All parameters are optional and have sensible defaults for creating a standard speech bubble appearance.
position
- Where to position the arrow. Defaults to BubblePosition.Bottom.
borderRadius
- Corner radius for the bubble body. Defaults to 12.0.
arrowHeight
- How far the arrow extends from the bubble. Defaults to 10.0.
arrowWidth
- Width of the arrow base. Defaults to 10.0.
arrowPositionPercent
- Arrow position along the edge (0.0 to 1.0). Defaults to 0.5 (center).
Implementation
BubbleShape({
this.position = BubblePosition.Bottom,
this.borderRadius = 12,
this.arrowHeight = 10,
this.arrowWidth = 10,
this.arrowPositionPercent = 0.5,
});