fc_material_alert 0.0.3 copy "fc_material_alert: ^0.0.3" to clipboard
fc_material_alert: ^0.0.3 copied to clipboard

A simple wrapper around Flutter Material Design alert dialogs.

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');
0
likes
140
pub points
57%
popularity

Publisher

verified publisherflutter-cavalry.com

A simple wrapper around Flutter Material Design alert dialogs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on fc_material_alert