File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/firebase_ui_auth/lib/src/widgets Expand file tree Collapse file tree 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> {
8282 fba.FirebaseAuth get auth => widget.auth ?? fba.FirebaseAuth .instance;
8383 bool _isLoading = false ;
8484
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);
8687
8788 Future <void > _deleteAccount () async {
8889 bool ? confirmed = ! widget.showDeleteConfirmationDialog;
@@ -94,8 +95,8 @@ class _DeleteAccountButtonState extends State<DeleteAccountButton> {
9495 context: context,
9596 builder: (context) {
9697 return UniversalAlert (
97- onConfirm: pop (true ),
98- onCancel: pop (false ),
98+ onConfirm: pop (context, true ),
99+ onCancel: pop (context, false ),
99100 title: l.confirmDeleteAccountAlertTitle,
100101 confirmButtonText: l.confirmDeleteAccountButtonLabel,
101102 cancelButtonText: l.cancelButtonLabel,
You can’t perform that action at this time.
0 commit comments