widgets/overlays/glass_confirmation_dialog library

Classes

GlassConfirmationDialogAction
A single action button displayed inside showGlassConfirmationDialog.

Functions

showGlassConfirmationDialog<T>({required BuildContext context, required List<GlassConfirmationDialogAction> actions, String? title, String? message, String? cancelLabel, bool? showCancelButton, GlassMorphAnchor? morphFrom, Rect? morphFromRect, GlassMenuAlignment? alignment, MorphSpeed morphSpeed = MorphSpeed.normal, bool barrierDismissible = true, Color? barrierColor, double? maxWidth, LiquidGlassSettings? settings, GlassQuality? quality, bool platformViewBackdrop = false, LiquidShape? shape, LiquidShape? actionShape, TextStyle? actionTextStyle, bool useRootNavigator = true}) → Future<T?>
Presents a native iOS 26/27 Liquid Glass confirmation dialog, mirroring SwiftUI's .confirmationDialog() and UIKit's UIAlertController(preferredStyle: .actionSheet).