Fluxy
Feedback & Overlays

FxDialog

Context-free alerts, confirmations, and prompts.

FxDialog

FxDialog provides a set of context-free methods for displaying standard dialogs (Alert, Confirm, Prompt) from anywhere in your codebase.

Usage

final confirmed = await Fx.dialog.confirm(
  title: "Delete item?",
  message: "This action cannot be undone.",
);

if (confirmed) {
  // Proceed
}

Features

Alert

A simple informational dialog that requires user acknowledgment.

await Fx.dialog.alert("Permission Required", "Please enable camera access.");

Prompt

(Coming Soon) A dialog for collecting simple text input.

API Reference

MethodReturnsDescription
alertFuture<void>Shows a message with an OK button.
confirmFuture<bool>Shows a message with OK/Cancel buttons.
customFuture<T?>Shows a custom widget dialog.

On this page