ArcaneDialog constructor
const
ArcaneDialog({})
Constructs an ArcaneDialog instance with customizable header, body, and styling options.
This constructor initializes the dialog's components and applies defaults for padding (24). All parameters are optional except as noted, allowing flexible usage from simple alerts to complex forms. The widget is ready for launch via ArcaneDialogLauncher.open, which handles the modal presentation.
Parameters:
key: Standard Flutter widget key.padding: Internal padding, default 24, scaled by theme.leading: Left header widget, e.g., icon for dialog type.title: Top title widget, bold and large by default.content: Body content, small and muted if text.actions: Bottom action list, right-aligned.trailing: Right header widget, e.g., close button.surfaceBlur: Custom blur radius for surface (null uses theme).surfaceOpacity: Custom opacity for surface (null uses theme).
Implementation
const ArcaneDialog({
super.key,
this.padding = 24,
this.leading,
this.title,
this.content,
this.actions,
this.trailing,
this.surfaceBlur,
this.surfaceOpacity,
});