DialogOverlayHandler class

Overlay handler that manages dialog display using the navigation stack.

Provides a standardized way to show dialogs through the overlay system with proper theme inheritance, animation handling, and modal behavior. Integrates with the shadcn_flutter overlay architecture for consistent dialog management across the application.

Features:

  • Navigation-based dialog management
  • Theme and data inheritance
  • Configurable modal barriers
  • Animation integration
  • Proper focus management

Example:

const DialogOverlayHandler().show<String>(
  context: context,
  alignment: Alignment.center,
  builder: (context) => MyCustomDialog(),
);
Inheritance

Constructors

DialogOverlayHandler.new()
Creates a DialogOverlayHandler.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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<PopoverOverlayWidgetState>? onTickFollow, bool allowInvertHorizontal = true, bool allowInvertVertical = true, bool dismissBackdropFocus = true, Duration? showDuration, Duration? dismissDuration, OverlayBarrier? overlayBarrier, LayerLink? layerLink}) OverlayCompleter<T>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isDialogOverlay(BuildContext context) bool
Checks if the current context is within a dialog overlay.