widgets/dialogs/dialog
library
Classes
-
Dialog
-
A themed dialog with gradient header and rounded corners.
Functions
-
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.
-
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
-
NashDialog
= Dialog
-
A themed dialog with gradient header and rounded corners.