widgets/dialogs/dialogs library

Exports for the dialogs layer.

Classes

ActionSheetItem
An action sheet item with icon, label, color and optional trailing.
NashBottomSheet
A modal bottom sheet with a handle, optional title and rounded top corners.
NashCommandItem
An individual action or search item in a NashCommandPalette.
NashCommandPalette
A Spotlight-style command palette dialog.
NashDialog
A themed dialog with gradient header and rounded corners.
NashDraggableSheet
A draggable bottom sheet with multiple snap points and fluid drag physics.
NashPopover
An interactive anchored popover widget that attaches a floating card to a target widget.
NashPopupMenu<T>
A themed popup menu with rounded corners and item styling.
NashPopupMenuItem<T>
A single popup menu item.

Enums

NashPopoverPlacement
Alignment placement for NashPopover.
NashPopoverTriggerMode
Trigger action for NashPopover.

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.
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.
showNashBottomSheet<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.
showNashCommandPalette<T>(BuildContext context, {required List<NashCommandItem> items, String placeholder = 'Type a command or search…', bool barrierDismissible = true}) → Future<T?>
Shows a modern command palette (Spotlight / Ctrl+K search dialog).
showNashDialog<T>({required BuildContext context, required Widget child, bool barrierDismissible = true, bool useRootNavigator = true}) → Future<T?>
Shows a themed dialog and returns the dialog widget.
showNashDraggableSheet<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.
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.