toast_notification 1.0.0 toast_notification: ^1.0.0 copied to clipboard
Show toast notifications anywhere in your app on just a function call. Design inspired by Threads Toast Notification.
Toast Notification Example #
It demonstrates how the both versions of our toast notificaiton work.
With Duration #
Toast Message will automatically close after 2 seconds
.
ToastMe(
text: "Hello World",
type: ToasterType.Check,
duration: 2000).showToast(context); //miliseconds
Without Duration #
Display toast message by...
NOTE: Make sure you have controller to close it later on.
ToastMe(
text: "Hello World",
type: ToasterType.Check,
controller: toasterController).showToast(context);
And shut the toast notification by...
toasterController.end();