Skip to content

Quick and simple dialogs like JavaScript's `alert`, `confirm` and `prompt`.

License

Notifications You must be signed in to change notification settings

flutter-cavalry/fc_quick_dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fc_quick_dialog

pub package

Quick and simple material-based dialogs like JavaScript's alert, confirm and prompt.

Usage

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

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

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

// Text input dialog.
final text = await FcQuickDialog.textInput(
    context,
    title: 'Enter a text',
    subTitle: 'This is a subtitle',
    okText: 'OK',
    cancelText: 'Cancel',
  );

// Password input dialog.
final pwd = await FcQuickDialog.textInput(
    context,
    title: 'Enter your password',
    password: true,
    okText: 'OK',
    cancelText: 'Cancel',
  );

About

Quick and simple dialogs like JavaScript's `alert`, `confirm` and `prompt`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published