PopOverlayContent constructor
PopOverlayContent({
- required Widget widget,
- required String id,
- bool shouldBlurBackground = false,
- Duration? duration,
- bool shouldDismissOnBackgroundTap = true,
- Function? onDismissed,
- Color? dismissBarrierColor,
- bool shouldAnimatePopup = true,
- Offset? popPositionOffset,
- Offset? offsetToPopFrom,
- EdgeInsetsGeometry? padding,
- bool hasBoxShadow = true,
- Color? frameColor,
- double frameWidth = 0.5,
- bool isDraggeable = true,
- FrameDesign? frameDesign,
- bool shouldMakeInvisibleOnDismiss = false,
- bool shouldStartInvisible = false,
- bool useGlobalPosition = false,
- Function? onMadeInvisible,
- Function? initState,
- Duration? popPositionAnimationDuration,
- Curve? popPositionAnimationCurve,
- BorderRadiusGeometry? borderRadius,
Creates a new pop overlay content configuration
Parameters:
widget: The widget to display in the overlay (required)id: Unique identifier for this overlay (required)shouldBlurBackground: Whether to blur content behind the overlayduration: Time after which the overlay auto-dismissesshouldDismissOnBackgroundTap: Whether tapping outside dismisses the overlayonDismissed: Function called when the overlay is dismisseddismissBarrierColor: Color for the background barrier when tappableshouldAnimatePopup: Whether to use animations for the overlaypopPositionOffset: Optional offset for the popup positionoffsetToPopFrom: Optional offset for the popup start animation positionframeColor: Color for the frame around the overlay contentframeWidth: Width of the frame around the overlay contentisDraggeable: Whether the popup can be dragged around the screenshouldMakeInvisibleOnDismiss: Whether the popup should become invisible instead of being removed when dismissedshouldStartInvisible: Whether the popup should start in invisible state (requires shouldMakeInvisibleOnDismiss to be true)frameDesign: Optional frame design template to wrap the widget with a standardized UI
Implementation
PopOverlayContent({
required this.widget,
required this.id,
this.shouldBlurBackground = false,
this.duration,
this.shouldDismissOnBackgroundTap = true,
this.onDismissed,
this.dismissBarrierColor,
this.shouldAnimatePopup = true,
this.popPositionOffset,
this.offsetToPopFrom,
this.padding,
this.hasBoxShadow = true,
this.frameColor,
this.frameWidth = 0.5,
this.isDraggeable = true,
this.frameDesign,
this.shouldMakeInvisibleOnDismiss = false,
this.shouldStartInvisible = false,
this.useGlobalPosition = false,
this.onMadeInvisible,
this.initState,
this.popPositionAnimationDuration,
this.popPositionAnimationCurve,
this.borderRadius,
});