File tree 1 file changed +4
-7
lines changed
packages/firebase_ui_auth/lib/src/screens
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -195,11 +195,8 @@ class _LinkedProvidersRowState extends State<_LinkedProvidersRow> {
195
195
});
196
196
}
197
197
198
- void Function () pop (bool value) {
199
- return () {
200
- Navigator .of (context).pop (value);
201
- };
202
- }
198
+ void Function () pop <T >(BuildContext context, T result) =>
199
+ () => Navigator .of (context).pop (result);
203
200
204
201
Future <void > _unlinkProvider (BuildContext context, String providerId) async {
205
202
setState (() {
@@ -216,8 +213,8 @@ class _LinkedProvidersRowState extends State<_LinkedProvidersRow> {
216
213
context: context,
217
214
builder: (context) {
218
215
return UniversalAlert (
219
- onConfirm: pop (true ),
220
- onCancel: pop (false ),
216
+ onConfirm: pop (context, true ),
217
+ onCancel: pop (context, false ),
221
218
title: l.ulinkProviderAlertTitle,
222
219
confirmButtonText: l.confirmUnlinkButtonLabel,
223
220
cancelButtonText: l.cancelButtonLabel,
You can’t perform that action at this time.
0 commit comments