tiny_alert

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

tiny alert

tiny_alert (flutter package) #
Just simple alert in tiny size for simple UI.


Getting Started #
add dependency latest version with command:
$ flutter pub add tiny_alert
copied to clipboard
or just adding to pubspec.yaml
dependecies:
tiny_alert: <version>
copied to clipboard
and then run bellow command to get packages:
$ flutter pub get
copied to clipboard
Examples #


Success #


TinyAlert.success(
context,
title: "Success!",
message: "This is a success message!",
);
copied to clipboard


Info #


TinyAlert.info(
context,
title: "Info!",
message: "This is a info message!",
);
copied to clipboard


Warning #


TinyAlert.warning(
context,
title: "Warning!",
message: "This is a warning message!",
);
copied to clipboard


Error #


TinyAlert.error(
context,
title: "Error!",
message: "This is a error message!",
);
copied to clipboard


Confirmation #


TinyAlert.confirm(
context,
title: "Confrimation!",
message: "This is a confirmation message!",
onConfirm: () {
Navigator.pop(context);
},
);
// also available onCancale function
copied to clipboard


Loading #


TinyAlert.progress(context,
label: "Loading...",
barrierDismissible: true,
); // barrierDismissible is optional, the default is false
copied to clipboard


Snackbar #


TinyAlert.snackbar(
context,
"This is snackbar message!",
);
copied to clipboard

There are several features that the author cannot write in this documentation due to the author's limitations.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.