easy_alert 0.0.1 copy "easy_alert: ^0.0.1" to clipboard
easy_alert: ^0.0.1 copied to clipboard

outdated

A alert package to use alert and toast within one line code.

pub package

easy_alert #

A package for flutter to use alert and toast within one line code.

Getting Started #

Add

    easy_alert:

to your pubspec.yaml, and run flutter packages get in your project root directory.

ROADMAP #

  • alert
  • confirm
  • toast
  • customize alert dialog
  • customize toast
  • support bottom sheet.

Integrate with your flutter app #

void main() => runApp(new AlertProvider(
      child: new YourApp(),
      config: new AlertConfig(
        ok: "OK text for `ok` button in AlertDialog", 
        cancel: "CANCEL text for `cancel` button in AlertDialog"),
    ));

alert #

  Alert.alert(context, title: "Hello", content: "this is a alert")
      .then((_) => Alert.toast(context, "You just click ok"));

confirm #

 Alert.confirm(context, title: "Hello", content: "this is a alert")
          .then((int ret) =>
              Alert.toast(context, ret == Alert.OK ? "ok" : "cancel"));

toast #

Alert.toast(context,"Very long toast",position: ToastPosition.bottom, duration: ToastDuration.long);
6
likes
0
pub points
62%
popularity

Publisher

unverified uploader

A alert package to use alert and toast within one line code.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on easy_alert