dialogs library

Dialogs, sheets, and adaptive alert/action APIs.

Classes

UIAdaptiveDialogAction<T>
A selectable action in showUIAdaptiveAlertDialog.
UIAlertDialog
Single-action card-style alert dialog built on UIShellDialog.
UIAlertPanel
Inline alert panel with icon, title, description, and optional actions.
UIAlertPanelStyle
Visual styling for UIAlertPanel.
UIConfirmDialog
Two-action confirm dialog with side-by-side cancel and confirm buttons.
UICupertinoActionSheetAction<T>
A selectable action in showUICupertinoActionSheet.
UICustomMessageDialog
Message dialog with title, body, and positive/negative action buttons.
UIImagePickerDialog
Dialog for choosing an image from the gallery or camera.
UIListDialog<T>
Scrollable single-select list presented as a dialog.
UISheet
Styled sheet container used by showUISheet.
UISheetDragHandle
Drag handle shown at the top of bottom sheets.
UIShellDialog
A customizable dialog shell with title, content, and action buttons.
UIShellDialogAction
Action slot for a button row in UIShellDialog.
UIShellDialogStyle
Visual styling for UIShellDialog.

Enums

UISheetSide
Edge from which a UISheet enters the screen.

Functions

showUIAdaptiveActionSheet<T>({required BuildContext context, String? title, String? message, required List<UICupertinoActionSheetAction<T>> actions, String cancelLabel = 'Cancel', bool forceCupertino = false, bool forceMaterial = false}) Future<T?>
Shows a platform-appropriate action sheet.
showUIAdaptiveAlertDialog<T>({required BuildContext context, String? title, String? message, required List<UIAdaptiveDialogAction<T>> actions, bool barrierDismissible = true, bool forceCupertino = false, bool forceMaterial = false}) Future<T?>
Shows a platform-appropriate alert dialog.
showUICupertinoActionSheet<T>({required BuildContext context, String? title, String? message, required List<UICupertinoActionSheetAction<T>> actions, String cancelLabel = 'Cancel'}) Future<T?>
Shows a Cupertino-style action sheet and returns the selected T value.
showUISheet<T>({required BuildContext context, required Widget child, UISheetSide side = UISheetSide.bottom, String? title, bool showDragHandle = true, bool isDismissible = true, bool enableDrag = true, double? width, double? height, Color? backgroundColor, bool glass = false, double blur = UIGlassConstants.defaultBlur, double tintOpacity = UIGlassConstants.defaultTintOpacity, UIGlassTheme? glassTheme, Gradient? gradient}) Future<T?>
Shows a kit-styled sheet from any UISheetSide.