Skip to content

Commit

Permalink
updated example with customDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
anokabb committed Oct 22, 2024
1 parent 6ea6969 commit 741a016
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions example/lib/main_custom_alert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ class MyUpgradeAlertState extends UpgradeAlertState {
required String? releaseNotes,
required bool barrierDismissible,
required UpgraderMessages messages,
Widget Function(
Key? key,
String title,
String message,
String? releaseNotes,
BuildContext context,
bool cupertino,
UpgraderMessages messages,
Function() onIgnore,
Function() onUpdate,
Function() onCancel,
)? customDialog,
}) {
showDialog(
context: context,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/upgrade_alert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class UpgradeAlertState extends State<UpgradeAlert> {
required String? releaseNotes,
required bool barrierDismissible,
required UpgraderMessages messages,
required Widget Function(
Widget Function(
Key? key,
String title,
String message,
Expand Down

0 comments on commit 741a016

Please sign in to comment.