TinyAlert class

Tiny Alert

Constructors

TinyAlert()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

confirm(BuildContext context, {required String title, required String message, required VoidCallback onConfirm, bool showConfirmButton = true, String confirmButtonText = "OK", Color? confirmButtonColor, bool showCancelButton = true, String cancelButtonText = "Cancel", VoidCallback? onCancel, bool barrierDismissible = true, double iconSize = 80, double maxWidth = 400, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20))}) → void
Show a confirmation message
error(BuildContext context, {required String title, required String message, bool showConfirmButton = true, String confirmButtonText = "OK", VoidCallback? onConfirm, bool showCancelButton = false, String cancelButtonText = "Cancel", VoidCallback? onCancel, bool barrierDismissible = true, double iconSize = 80, double maxWidth = 400, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20))}) → void
Show an error message
info(BuildContext context, {required String title, required String message, bool showConfirmButton = true, String confirmButtonText = "OK", VoidCallback? onConfirm, bool showCancelButton = false, String cancelButtonText = "Cancel", VoidCallback? onCancel, bool barrierDismissible = true, double iconSize = 80, double maxWidth = 400, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20))}) → void
Show an info message
progress(BuildContext context, {String? label, double? progress, bool barrierDismissible = false, TinyAlertLoadingType type = TinyAlertLoadingType.circular, double maxWidth = 400, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20))}) → void
Show a loading
snackbar(BuildContext context, String message, {bool? showCloseIcon, int? seconds, TextStyle? textStyle, int maxLines = 2, TextAlign textAlign = TextAlign.center, Color? backgroundColor, Color? closeIconColor}) → dynamic
Show a snackbar
success(BuildContext context, {required String title, required String message, bool showConfirmButton = true, String confirmButtonText = "OK", VoidCallback? onConfirm, bool showCancelButton = false, String cancelButtonText = "Cancel", VoidCallback? onCancel, bool barrierDismissible = true, double iconSize = 80, double maxWidth = 400, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20))}) → void
Show a success message
warning(BuildContext context, {required String title, required String message, bool showConfirmButton = true, String confirmButtonText = "OK", VoidCallback? onConfirm, bool showCancelButton = false, String cancelButtonText = "Cancel", VoidCallback? onCancel, bool barrierDismissible = true, double iconSize = 80, double maxWidth = 400, Color? backgroundColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20))}) → void
Show a warning message