show_confirm_modal

Last updated:

0 purchases

show_confirm_modal Image
show_confirm_modal Images
Add to Cart

Description:

show confirm modal

show_confirm_modal #
Allows to display a simple confirmation modal with callback
Installation #
Run this command in your terminal:
flutter pub add show_confirm_modal
copied to clipboard
Usage #
import 'package:show_confirm_modal/show_confirm_modal.dart';

/// Minimal example
showConfirm(
context: context,
onCancel: () => print("Cancel"),
onConfirm: () => print("Confirm"),
);

/// With custom title and message
showConfirm(
context: context,
title: Text("Title"),
message: Text("Message"),
onCancel: () => print("Cancel"),
onConfirm: () => print("Confirm"),
);

/// Full example with custom buttons
showConfirm(
context: context,
title: Text("Title"),
message: Text("Message"),
cancel: Text("Cancel"),
confirm: Text("Confirm"),
onCancel: () => print("Cancel"),
onConfirm: () => print("Confirm"),
);
copied to clipboard
Rendering #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.