showPopover<T> function
OverlayCompleter<T?>
showPopover<T>({
- required BuildContext context,
- required AlignmentGeometry alignment,
- required WidgetBuilder builder,
- Offset? position,
- AlignmentGeometry? anchorAlignment,
- PopoverConstraint widthConstraint = PopoverConstraint.flexible,
- PopoverConstraint heightConstraint = PopoverConstraint.flexible,
- Key? key,
- bool rootOverlay = true,
- bool modal = true,
- bool barrierDismissable = true,
- Clip clipBehavior = Clip.none,
- Object? regionGroupId,
- Offset? offset,
- AlignmentGeometry? transitionAlignment,
- EdgeInsetsGeometry? margin,
- bool follow = true,
- bool consumeOutsideTaps = true,
- ValueChanged<
PopoverAnchorState> ? onTickFollow, - bool allowInvertHorizontal = true,
- bool allowInvertVertical = true,
- bool dismissBackdropFocus = true,
- Duration? showDuration,
- Duration? dismissDuration,
- OverlayBarrier? overlayBarrier,
- OverlayHandler? handler,
Implementation
OverlayCompleter<T?> showPopover<T>({
required BuildContext context,
required AlignmentGeometry alignment,
required WidgetBuilder builder,
Offset? position,
AlignmentGeometry? anchorAlignment,
PopoverConstraint widthConstraint = PopoverConstraint.flexible,
PopoverConstraint heightConstraint = PopoverConstraint.flexible,
Key? key,
bool rootOverlay = true,
bool modal = true,
bool barrierDismissable = true,
Clip clipBehavior = Clip.none,
Object? regionGroupId,
Offset? offset,
AlignmentGeometry? transitionAlignment,
EdgeInsetsGeometry? margin,
bool follow = true,
bool consumeOutsideTaps = true,
ValueChanged<PopoverAnchorState>? onTickFollow,
bool allowInvertHorizontal = true,
bool allowInvertVertical = true,
bool dismissBackdropFocus = true,
Duration? showDuration,
Duration? dismissDuration,
OverlayBarrier? overlayBarrier,
OverlayHandler? handler,
}) {
handler ??= OverlayManager.of(context);
return handler.show<T>(
context: context,
alignment: alignment,
builder: builder,
position: position,
anchorAlignment: anchorAlignment,
widthConstraint: widthConstraint,
heightConstraint: heightConstraint,
key: key,
rootOverlay: rootOverlay,
modal: modal,
barrierDismissable: barrierDismissable,
clipBehavior: clipBehavior,
regionGroupId: regionGroupId,
offset: offset,
transitionAlignment: transitionAlignment,
margin: margin,
follow: follow,
consumeOutsideTaps: consumeOutsideTaps,
onTickFollow: onTickFollow,
allowInvertHorizontal: allowInvertHorizontal,
allowInvertVertical: allowInvertVertical,
dismissBackdropFocus: dismissBackdropFocus,
showDuration: showDuration,
dismissDuration: dismissDuration,
overlayBarrier: overlayBarrier,
);
}