widgets/dialogs/dialogs library

Exports for the dialogs layer.

Classes

ActionSheetItem
An action sheet item with icon, label, color and optional trailing.
BottomSheet
A modal bottom sheet with a handle, optional title and rounded top corners.
CommandItem
An individual action or search item in a CommandPalette.
CommandPalette
A Spotlight-style command palette dialog.
Dialog
A themed dialog with gradient header and rounded corners.
DraggableSheet
A draggable bottom sheet with multiple snap points and fluid drag physics.
NumberPadDialog
A full-screen style numeric pad dialog.
Popover
An interactive anchored popover widget that attaches a floating card to a target widget.
PopupMenu<T>
A themed popup menu with rounded corners and item styling.
PopupMenuItem<T>
A single popup menu item data model used with PopupMenu.

Enums

PopoverPlacement
Alignment placement for Popover.
PopoverTriggerMode
Trigger action for Popover.

Functions

showActionSheet({required BuildContext context, required List<ActionSheetItem> items, String? title, String? subtitle, String? cancelLabel = 'Cancel'}) → Future<int?>
Shows an action sheet with a list of actions.
showBottomSheet<T>({required BuildContext context, required Widget child, bool isScrollControlled = true, bool isDismissible = true, bool enableDrag = true, bool useSafeArea = true}) → Future<T?>
Shows a modal bottom sheet and returns the sheet widget.
showCommandPalette<T>(BuildContext context, {required List<CommandItem> items, String placeholder = 'Type a command or search…', bool barrierDismissible = true}) → Future<T?>
Shows a modern command palette (Spotlight / Ctrl+K search dialog).
showDialog<T>({required BuildContext context, Widget? child, WidgetBuilder? builder, bool barrierDismissible = true, bool useRootNavigator = true}) → Future<T?>
Shows a themed dialog and returns the dialog widget.
showDraggableSheet<T>({required BuildContext context, required Widget builder(BuildContext context, ScrollController scrollController), double initialChildSize = 0.5, double minChildSize = 0.25, double maxChildSize = 0.95, List<double> snapSizes = const <double>[0.25, 0.5, 0.95], bool isDismissible = true}) → Future<T?>
Shows a draggable bottom sheet with multiple snap points.
showNAlertDialog<T>({required BuildContext context, required String title, String? message, String? confirmLabel = 'OK', String? cancelLabel, T? confirmValue, T? cancelValue, VoidCallback? onConfirm, Color? confirmColor, AppFeedbackType type = AppFeedbackType.info, bool barrierDismissible = true}) → Future<T?>
Shows an alert dialog and returns the pressed action.
showNConfirmDialog({required BuildContext context, required String title, String? message, String confirmLabel = 'Confirm', String cancelLabel = 'Cancel', VoidCallback? onConfirm, Color? confirmColor, AppFeedbackType type = AppFeedbackType.info}) → Future<bool?>
Shows a confirmation dialog.
showNInputDialog({required BuildContext context, required String title, String? message, String? initialText, String confirmLabel = 'Save', String cancelLabel = 'Cancel', String? hintText, TextInputType? keyboardType, int maxLines = 1, String? validator(String?)?}) → Future<String?>
Shows an input dialog returning the entered text.

Typedefs

NashBottomSheet = BottomSheet
A backwards-compatible alias for BottomSheet.
NashDialog = Dialog
A themed dialog with gradient header and rounded corners.
NashPopupMenuItem<T> = PopupMenuItem<T>
Backwards-compatible alias.