screens/quds_dialog
library
Functions
-
showQudsConfirmDeleteDialog(BuildContext context, {Widget? child = const Text('Are you sure to delete?'), Widget builder(BuildContext context)?, EdgeInsets insetPadding = _defaultDialogInsetPadding, String? title = 'Delete', AlignmentGeometry alignment = Alignment.center, Color? backgroundColor, Color? barrierColor, BorderRadius? borderRadius, String deleteText = 'Delete', String cancelText = 'Cancel', bool withBlur = false, Function? onDeletePressed, Function? onCancelPressed, bool withAnimatedSize = true})
→ Future<void>
-
Show confirmation delete dialog with two actions
Delete
- Cancel
.
-
showQudsConfirmExitDialog(BuildContext context, {Widget? child = const Text('Are you sure to exit?'), Widget builder(BuildContext context)?, EdgeInsets insetPadding = _defaultDialogInsetPadding, String? title = 'Exit', AlignmentGeometry alignment = Alignment.center, Color? backgroundColor, BorderRadius? borderRadius, String exitText = 'Exit', String cancelText = 'Cancel', Color? barrierColor, bool withBlur = false, Function? onExitPressed, Function? onCancelPressed, bool withAnimatedSize = true})
→ Future<void>
-
Show confirmation exit dialog with two actions
Exit
- Cancel
.
-
showQudsDialog<T>(BuildContext context, {Widget? child, Widget builder(BuildContext context)?, EdgeInsets insetPadding = _defaultDialogInsetPadding, Widget? title, List<Widget>? actions, List<Widget>? leadingActions, AlignmentGeometry alignment = Alignment.center, Color? backgroundColor, Color? barrierColor, BorderRadius? borderRadius, bool withBlur = false, bool withAnimatedSize = true})
→ Future<T?>
-
Show a dialog with already defined components like title, body, bottom actions, leading icon.
-
showQudsYesNoDialog(BuildContext context, {Widget? child, Widget builder(BuildContext context)?, EdgeInsets insetPadding = _defaultDialogInsetPadding, Widget? title, List<Widget>? leadingActions, AlignmentGeometry alignment = Alignment.center, Color? backgroundColor, BorderRadius? borderRadius, String yesText = 'Yes', String noText = 'No', Color? yesColor, Color? barrierColor, bool withBlur = false, Color? noColor, Function? onYesPressed, Function? onNoPressed, bool withAnimatedSize = true})
→ Future<void>
-
Show two actions dialog with
Yes
- No
.