alert_craft 0.0.16 copy "alert_craft: ^0.0.16" to clipboard
alert_craft: ^0.0.16 copied to clipboard

Alert Craft simplifies customizable notification and selection dialogs for Flutter. Use OverlayService for notifications and choice prompts.

alert_craft #

alert_craft is a Flutter package for managing various types of overlays and alerts in your Flutter application. It provides a simple API for displaying alert dialogs, loading dialogs, selection dialogs, toast messages, and custom widgets.

Features #

  • Show Alert Dialog: Display customizable alert dialogs.
  • Show Loading Dialog: Show a loading indicator.
  • Show Selection Dialog: Display a dialog with selectable options.
  • Show Toast Message: Show non-intrusive toast messages.
  • Show Custom Dialog: Display custom widgets in dialogs.
  • Show Custom Alert: Display custom alerts with custom widgets.
  • Close Alert: Close the currently displayed overlay or alert.

Show Alert Dialog #

Displays a customizable alert dialog with a title, description, and optional button styling.


void showAlert() {
  ShowAlert().showAlertDialog(
    type: AlertType.warning,
    title: 'Alert Title',
    description: 'This is an alert description.',
    buttonColor: Colors.blue,
    buttonText: 'OK',
    buttonTextColor: Colors.white,
    backgroundColor: Colors.black,
  );
}

Show Loading Dialog #

Shows a loading indicator on top of the current screen.


void showLoading(BuildContext context) {
  ShowAlert().showLoadingDialog(context);
}

Show Selection Dialog #

Displays a dialog with options and custom button actions.

ShowAlert().showAlertDialog(
    type: AlertType.warning,
    title: 'Alert Title',
    description: 'This is an alert description.',
    buttonColor: Colors.blue,
    buttonText: 'OK',
    buttonTextColor: Colors.white,
    backgroundColor: Colors.black,
  );

Show Toast Message #

Shows a non-intrusive toast message with a title and description.


ShowAlert().showToastMessage(
    type: AlertType.warning,
    title: 'Toast Title',
    description: 'This is a toast message.',
    backgroundColor: Colors.green,
  );

Show Custom Dialog #

Displays a custom widget inside a dialog.

ShowAlert().showCustomDialog(
  Material(
    child: MyCustomWidget(), // Replace with your custom widget
  )
);

Show Custom Alert #

Displays a custom alert with your own widget.

ShowAlert().showCustomAlert(
  Material(
    child: MyCustomAlertWidget(), // Replace with your custom alert widget
  )
);

Close Alert #

Closes the currently displayed overlay or alert.

ShowAlert().closeAlert();

Installation #

Add alert_craft to your pubspec.yaml file:

dependencies:
  alert_craft: ^0.0.15
2
likes
0
points
273
downloads

Publisher

verified publisheryeksoftware.com.tr

Weekly Downloads

Alert Craft simplifies customizable notification and selection dialogs for Flutter. Use OverlayService for notifications and choice prompts.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, get

More

Packages that depend on alert_craft