Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 771 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 771 Bytes

Deprecated: Moved to fc_quick_dialog.

fc_material_alert

pub package

A simple wrapper around Flutter Material Design alert dialogs.

Usage

// Confirm dialog.
final result = await FcMaterialAlert.confirm(context,
    title: 'Confirm',
    yesText: 'Yes',
    noText: 'No',
    cancelText: 'Cancel',
    content: 'Are you sure?');

// Standard dialog.
await FcMaterialAlert.standard(context,
    title: 'Info',
    okText: 'OK',
    content: 'You selected $result');

// Error dialog.
await FcMaterialAlert.error(
    context, 'Exception: Test plugin error',
    title: 'Error', okText: 'OK');