common_printer_service/printer_ui
library
Classes
-
PrinterOverlay
-
Tracks the host app's root overlays so the SDK can render toasts and other
floating UI without requiring a
BuildContext at the call site.
Functions
-
displaySnackBar({required Color color, required String message, BuildContext? context})
→ void
-
Backwards-compatible helper for the old app-level
displaySnackBar.
-
hidePrinterToast()
→ void
-
Hides the visible toast, if any.
-
showPrinterConfirmDialog(BuildContext context, {required String title, required String message, String confirmLabel = 'Yes', String cancelLabel = 'No', bool destructive = false})
→ Future<bool>
-
Shows a premium styled confirmation dialog.
-
showPrinterToast(String message, {PrinterToastType type = PrinterToastType.info, BuildContext? context})
→ void
-
Shows a themed toast.
-
showPrinterToastWithColor(String message, {required Color color, BuildContext? context})
→ void
-
Shows a toast with an explicit
color.