CcBubbleWidget constructor
CcBubbleWidget({
- Key? key,
- Widget? child,
- double? width,
- double? height,
- Color? bubbleColor = Colors.white,
- double bubbleRadius = 8.0,
- Color? bubbleShadowColor = Colors.grey,
- double bubbleShadowRadius = 32.0,
- double? bubbleTriangleLength = 12.0,
- Offset? bubbleTrianglePointOffset,
- double? bubbleTriangleTranslation,
- CcBubbleArrowDirection bubbleTriangleDirection = CcBubbleArrowDirection.left,
- bool isTriangleOccupiedSpace = true,
Implementation
CcBubbleWidget({
Key? key,
this.child,
this.width,
this.height,
this.bubbleColor = Colors.white,
this.bubbleRadius = 8.0,
this.bubbleShadowColor = Colors.grey,
this.bubbleShadowRadius = 32.0,
this.bubbleTriangleLength = 12.0,
this.bubbleTrianglePointOffset, // null we will caculate a Offset value base on the length, here is Offset(-12.0, -6.0) for arrow left,
this.bubbleTriangleTranslation,
this.bubbleTriangleDirection = CcBubbleArrowDirection.left,
this.isTriangleOccupiedSpace = true, // if true we ask for more space using margin
}) : super(key: key);