handy_dialogs library

Classes

ConfirmDenyButtons
Red cancel and green proceed buttons

Functions

confirmationDialog(BuildContext context, String message, String confirmText, String cancelText) Future<bool>
Dialog for confirmation Shows a dialog with given question and returns a confirmation bool
deleteConfirmation(BuildContext context) Future<bool?>
Delete confirmation Shows a dialog and returns a bool
notificationDialog(BuildContext buildContext, String title, String message, {Function? onTap, String? path, Color? backgroundColor}) → dynamic
Notification dialog Shows a notification dialog with given title and message
open(dynamic context, Widget page, {Function? beforeOpen, Function? afterClose}) → dynamic
Open a window
openThen(dynamic context, Widget page, {Function? then, Function? beforeOpen, Function? afterClose}) → dynamic
Open a window, execute @then until window closed
pop(BuildContext context, {dynamic value}) → dynamic
Window return
popUntil(BuildContext context, {String value = '/'}) → dynamic
Window return until
showText(BuildContext context, String text, String subtitle, {Color? backgroundColor, int seconds = 5, Widget? leading, List<Widget>? trailing, Function? onTap, bool isNotification = false, bool isFlash = true}) Future<void>
Information dialog Shows a flash dialog or a simple dialog with @isFlash = false