SweetAlert.swal("Here's a message");
SweetAlert.swal("Here's a message!", text: "It's pretty, isn't it?");
SweetAlert.swal("Good job!", text: "You clicked the button!", type: "success");
SweetAlert.swal("Are you sure?", text: "You will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", closeOnConfirm: false, callback: (result) => SweetAlert.swal("Deleted!", text: "Your imaginary file has been deleted.", type: "success"));
SweetAlert.swal("Are you sure?", text: "You will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel plx!", closeOnConfirm: false, closeOnCancel: false, callback: (bool isConfirm) => isConfirm ? SweetAlert.swal("Deleted!", text: "Your imaginary file has been deleted.", type: "success") : SweetAlert.swal("Cancelled", text: "Your imaginary file is safe :)", type: "error"));
SweetAlert.swal("Sweet!", text: "Here's a custom image.", imageUrl: "images/thumbs-up.jpg" );
SweetAlert.swal("HTML <small>Title</small>!", text: 'A custom <span style="color:#F8BB86">html</span> message.', html: true);
SweetAlert.swal("Auto close alert!", text: "I will close in 2 seconds.", timer: 2000, showConfirmButton: false);
SweetAlert.swal("An input!", text: "Write something interesting:", type: "input", showCancelButton: true, closeOnConfirm: false, animation: "slide-from-top", inputPlaceholder: "Write something", callback: (inputValue) => (inputValue is bool) ? inputValue : ((inputValue != "") ? SweetAlert.swal("Nice!", text: "You wrote: " + inputValue, type: "success") : SweetAlert.showInputError("You need to write something!")));
SweetAlert.swal("Ajax request example", text: "Submit to run ajax request", type: "info", showCancelButton: true, closeOnConfirm: false, showLoaderOnConfirm: true, callback: (bool isConfirm) => new Timer(const Duration(milliseconds: 2000), () => SweetAlert.swal("Ajax request finished!")));