OpenCustomDialog class
A class responsible for displaying a customized modal dialog that acts as a container for a notice card or custom content.
Constructors
- OpenCustomDialog.confirm(BuildContext context, {required String title, String? subtitle, String? confirmButtonText, String? cancelButtonText, VoidCallback? onConfirm, VoidCallback? onCancel, dynamic onClose(dynamic)?, bool barrierDismissible = false, Color barrierColor = const Color(0x80000000), double blurSigma = 0.0, bool useSafeArea = true, bool showClose = true, bool expandButtons = true, Color? confirmButtonBackgroundColor, Color? confirmButtonForegroundColor, Color? cancelButtonForegroundColor, Widget? noticeIcon, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, bool compact = false, Color? backgroundColor, double? minHeight, double? maxWidth})
-
Displays a confirmation dialog with "Confirm" and "Cancel" buttons.
factory
- OpenCustomDialog.custom(BuildContext context, {required Widget builder(BuildContext context, void close(dynamic result)), dynamic onClose(dynamic)?, bool barrierDismissible = true, Color barrierColor = const Color(0x80000000), double blurSigma = 0.0, bool useSafeArea = true})
-
Factory for a dialog with a completely custom body.
factory
- OpenCustomDialog.error(BuildContext context, {required String title, String? subtitle, String? confirmButtonText, VoidCallback? onConfirm, dynamic onClose(dynamic)?, bool barrierDismissible = true, Color barrierColor = const Color(0x80000000), double blurSigma = 0.0, bool useSafeArea = true, bool showClose = true, bool expandButtons = false, Color? confirmButtonBackgroundColor, Color? confirmButtonForegroundColor, Widget? noticeIcon, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, bool compact = false, Color? backgroundColor, double? minHeight, double? maxWidth})
-
Displays an error dialog.
factory
- OpenCustomDialog.info(BuildContext context, {required String title, String? subtitle, String? confirmButtonText, VoidCallback? onConfirm, dynamic onClose(dynamic)?, bool barrierDismissible = true, Color barrierColor = const Color(0x80000000), double blurSigma = 0.0, bool useSafeArea = true, bool showClose = true, bool expandButtons = false, Color? confirmButtonBackgroundColor, Color? confirmButtonForegroundColor, Widget? noticeIcon, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, bool compact = false, Color? backgroundColor, double? minHeight, double? maxWidth})
-
Displays an informational dialog.
factory
- OpenCustomDialog.notice(BuildContext context, {required RistoNoticeCard notice, dynamic onClose(dynamic)?, bool barrierDismissible = true, Color barrierColor = const Color(0x80000000), double blurSigma = 0.0, bool useSafeArea = true})
-
Factory for a dialog that displays a pre-configured RistoNoticeCard.
factory
- OpenCustomDialog.success(BuildContext context, {required String title, String? subtitle, String? confirmButtonText, VoidCallback? onConfirm, dynamic onClose(dynamic)?, bool barrierDismissible = true, Color barrierColor = const Color(0x80000000), double blurSigma = 0.0, bool useSafeArea = true, bool showClose = true, bool expandButtons = false, Color? confirmButtonBackgroundColor, Color? confirmButtonForegroundColor, Widget? noticeIcon, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, bool compact = false, Color? backgroundColor, double? minHeight, double? maxWidth})
-
Displays a success dialog.
factory
- OpenCustomDialog.warning(BuildContext context, {required String title, String? subtitle, String? confirmButtonText, String? cancelButtonText, VoidCallback? onConfirm, VoidCallback? onCancel, dynamic onClose(dynamic)?, bool barrierDismissible = true, Color barrierColor = const Color(0x80000000), double blurSigma = 0.0, bool useSafeArea = true, bool showClose = true, bool expandButtons = true, Color? confirmButtonBackgroundColor, Color? confirmButtonForegroundColor, Color? cancelButtonForegroundColor, Widget? noticeIcon, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, bool compact = false, Color? backgroundColor, double? minHeight, double? maxWidth})
-
Displays a warning dialog with "Continue" and "Cancel" buttons.
factory
Properties
- barrierColor → Color
-
final
- barrierDismissible → bool
-
final
- blurSigma → double
-
The amount of background blur to apply behind the dialog.
Defaults to 0.0 (no blur).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onClose → dynamic Function(dynamic)?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
- useSafeArea → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
BuildContext context, {Duration transitionDuration = Durations.short3, Widget transitionBuilder(BuildContext context, Animation< double> animation, Animation<double> secondaryAnimation, Widget child)?}) → void - Displays the configured dialog.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited