ui/dialog/custom_dialog library

Functions

baseDialog(BuildContext context, {required Widget content, bool dismissible = true, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, double? width, double? dialogWidth = 280, double dialogRadius = 8.0, double dialogElevation = 10.0}) Future<void>
Displays a custom dialog with optional styling and animations.
hideDialog(BuildContext context) → void
Hides the currently showing dialog, if any.
isDialogShowing(BuildContext context) bool
Returns whether a dialog is currently showing in the given context.
showConfirmDialog(BuildContext context, {required AppTheme theme, bool dismissible = true, String? title, String? message, String? positiveText, String? negativeText, Color? negativeColor, Color? positiveColor, void onNegativePressed()?, void onPositivePressed()?}) Future<void>
Shows a confirmation dialog with customizable text and callbacks.
showCustomDialog(BuildContext context, {Widget? content, required AppTheme theme, bool dismissible = true, String? positiveText, String? negativeText, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, Color color = Colors.black, Color textColor = Colors.white, Color? negativeColor, Color? positiveColor, void onNegativePressed()?, void onPositivePressed()?}) Future<void>
Shows a customizable dialog with positive and negative actions.
showDialogWithAnimation<T>({required BuildContext context, bool barrierDismissible = true, Color? barrierColor = Colors.black54, required Widget child}) Future<T?>
Displays a dialog with fade-in animation.
showInfoDialog(BuildContext context, {String? message, Color? barrierColor = Colors.black54, required AppTheme theme, void onRateAppPressed()?, void onShareAppPressed()?, void onSendFeedbackPressed()?}) Future<void>
Shows an informational dialog.
showProgressDialog(BuildContext context, {String? message, required Color textColor, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, void onPressed()?}) Future<void>
Displays a loading/progress dialog.
showSelectLanguageDialog(BuildContext context, {required AppTheme theme, required SupportLanguage language, bool dismissible = true, void onItemPressed(SupportLanguage)?}) Future<void>
Shows a language selection dialog.
showUnlockFeatureDialog(BuildContext context, {required AppTheme theme, required ProductDetails product, String? message, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, void onPurchasePressed()?, void onClosePressed()?}) Future<void>
Shows an "unlock feature" dialog for in-app purchases.