File tree 1 file changed +4
-3
lines changed
packages/firebase_ui_auth/lib/src/widgets
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ class _DeleteAccountButtonState extends State<DeleteAccountButton> {
82
82
fba.FirebaseAuth get auth => widget.auth ?? fba.FirebaseAuth .instance;
83
83
bool _isLoading = false ;
84
84
85
- void Function () pop <T >(T result) => () => Navigator .of (context).pop (result);
85
+ void Function () pop <T >(BuildContext context, T result) =>
86
+ () => Navigator .of (context).pop (result);
86
87
87
88
Future <void > _deleteAccount () async {
88
89
bool ? confirmed = ! widget.showDeleteConfirmationDialog;
@@ -94,8 +95,8 @@ class _DeleteAccountButtonState extends State<DeleteAccountButton> {
94
95
context: context,
95
96
builder: (context) {
96
97
return UniversalAlert (
97
- onConfirm: pop (true ),
98
- onCancel: pop (false ),
98
+ onConfirm: pop (context, true ),
99
+ onCancel: pop (context, false ),
99
100
title: l.confirmDeleteAccountAlertTitle,
100
101
confirmButtonText: l.confirmDeleteAccountButtonLabel,
101
102
cancelButtonText: l.cancelButtonLabel,
You can’t perform that action at this time.
0 commit comments