Skip to main content

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

discontinuedreplaced by: dialog_boxes
retracted[pending analysis]

A flutter widgets for different different dialogs.

alert_dailogs #

A flutter widgets for different different dialogs.

Features #

  • show Alert Dialog with icons and button
  • show warning dialog with icons and button
  • show confirmation dialog with icons and button also conformation calback function.

Getting started #

To use this package, add alert_dailogs as a dependency in your pubspec.yaml file.

Usage #

Minimal example:

   showDialog(
    context: context,
    builder: (context) {
      return CustomIconDialog(
        dialogType: DialogType.alert,
        content: "Alert Dialog",
        title: "Warning",
        onConfirm: () {
          // some code...
        },
      );
    },
  );

Custom settings:

    showDialog(
      context: context,
      builder: (context) {
        return CustomIconDialog(
          dialogType: DialogType.alert,
          content: "Alert Dialog",
          title: "Warning",
          onConfirm: () {
            showDialog(
              context: context,
              builder: (context) {
                return const CustomIconDialog(
                  content: "Sure...!!",
                  dialogType: DialogType.alert,
                  title: 'Title',
                );
              },
            );
          },
        );
      },
    );
1
likes
0
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter widgets for different different dialogs.

Repository (GitHub)
View/report issues

License

(pending) (license)

Dependencies

flutter

More

Packages that depend on alert_dailogs