show<T> method

  1. @override
OverlayCompleter<T?> show<T>({
  1. required BuildContext context,
  2. required AlignmentGeometry alignment,
  3. required WidgetBuilder builder,
  4. Offset? position,
  5. AlignmentGeometry? anchorAlignment,
  6. PopoverConstraint widthConstraint = PopoverConstraint.flexible,
  7. PopoverConstraint heightConstraint = PopoverConstraint.flexible,
  8. Key? key,
  9. bool rootOverlay = true,
  10. bool modal = true,
  11. bool barrierDismissable = true,
  12. Clip clipBehavior = Clip.none,
  13. Object? regionGroupId,
  14. Offset? offset,
  15. AlignmentGeometry? transitionAlignment,
  16. EdgeInsetsGeometry? margin,
  17. bool follow = true,
  18. bool consumeOutsideTaps = true,
  19. ValueChanged<PopoverAnchorState>? onTickFollow,
  20. bool allowInvertHorizontal = true,
  21. bool allowInvertVertical = true,
  22. bool dismissBackdropFocus = true,
  23. Duration? showDuration,
  24. Duration? dismissDuration,
  25. 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,
  );
}