show<T> method
OverlayCompleter<T?>
show<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,
override
Implementation
@override
OverlayCompleter<T?> show<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,
}) {
builder = Pylon.mirror(context, builder);
return openRawDrawer<T>(
context: context,
transformBackdrop: false,
useSafeArea: false,
barrierDismissible: barrierDismissable,
builder: (context, extraSize, size, padding, stackIndex) {
final theme = Theme.of(context);
return MultiModel(
data: const [
Model(#shadcn_flutter_sheet_overlay, true),
],
child: Builder(builder: (context) {
return SheetWrapper(
position: this.position,
gapAfterDragger: 8 * theme.scaling,
expands: true,
extraSize: extraSize,
size: size,
draggable: barrierDismissable,
padding: padding,
barrierColor: barrierColor,
stackIndex: stackIndex,
child: builder(context),
);
}),
);
},
position: this.position,
);
}