XDialog class abstract final

Consistent helpers for custom, alert, confirmation, and loading dialogs.

All methods return the native dialog result and accept common route controls, keeping navigation behavior explicit.

Pass look to opt into a visual preset. Default is XLook.standard.

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

alert(BuildContext context, {required String title, required String message, String actionLabel = 'OK', Widget? icon, bool barrierDismissible = true, XLook look = XLook.standard}) Future<void>
Shows an informational alert and completes when it is closed.
confirm(BuildContext context, {required String title, required String message, String confirmLabel = 'Confirm', String cancelLabel = 'Cancel', Widget? icon, bool isDestructive = false, bool barrierDismissible = true, XLook look = XLook.standard}) Future<bool>
Shows a confirmation dialog and returns true only when confirmed.
loading<T>(BuildContext context, {String? message, Widget? indicator, bool useRootNavigator = true, XLook look = XLook.standard}) Future<T?>
Shows a non-dismissible loading dialog.
show<T>(BuildContext context, {required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings}) Future<T?>
Shows arbitrary dialog content.