BubbleLabelContent constructor
BubbleLabelContent({
- String? id,
- Color? bubbleColor,
- Widget? child,
- double? backgroundOverlayLayerOpacity,
- double? verticalPadding,
- bool shouldActivateOnLongPressOnAllPlatforms = false,
- Offset? positionOverride,
- bool dismissOnBackgroundTap = false,
- bool shouldIgnorePointer = true,
- void onTapInside(
- TapDownDetails event
- void onTapOutside(
- TapDownDetails event
- Duration animationDuration = const Duration(milliseconds: 200),
- Curve showCurve = Curves.easeIn,
- Curve dismissCurve = Curves.easeOutBack,
- double horizontalOffset = 0.0,
- bool showOnHover = false,
Creates a BubbleLabelContent.
Implementation
BubbleLabelContent({
String? id,
this.bubbleColor,
this.child,
this.backgroundOverlayLayerOpacity,
// label size is derived from child
double? verticalPadding,
this.shouldActivateOnLongPressOnAllPlatforms = false,
this.positionOverride,
this.dismissOnBackgroundTap = false,
this.shouldIgnorePointer = true,
this.onTapInside,
this.onTapOutside,
this.animationDuration = const Duration(milliseconds: 200),
this.showCurve = Curves.easeIn,
this.dismissCurve = Curves.easeOutBack,
this.horizontalOffset = 0.0,
this.showOnHover = false,
}) : id = id ?? Xid().toString(),
floatingVerticalPadding = verticalPadding ?? 5.0,
_childWidgetRenderBox = null;