BubbleLabelContent constructor

BubbleLabelContent({
  1. String? id,
  2. Color? bubbleColor,
  3. Widget? child,
  4. double? backgroundOverlayLayerOpacity,
  5. double? verticalPadding,
  6. bool shouldActivateOnLongPressOnAllPlatforms = false,
  7. Offset? positionOverride,
  8. bool dismissOnBackgroundTap = false,
  9. bool shouldIgnorePointer = true,
  10. void onTapInside(
    1. TapDownDetails event
    )?,
  11. void onTapOutside(
    1. TapDownDetails event
    )?,
  12. Duration animationDuration = const Duration(milliseconds: 200),
  13. Curve showCurve = Curves.easeIn,
  14. Curve dismissCurve = Curves.easeOutBack,
  15. double horizontalOffset = 0.0,
  16. 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;