Skip to content

Commit

Permalink
Merge branch 'master' into LarsRefsgaard/data-page-null-safety
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsRefsgaard authored Jul 19, 2023
2 parents 452d0a4 + 04af265 commit 1d2dce3
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 169 deletions.
25 changes: 0 additions & 25 deletions lib/ui/pages/informed_consent_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,6 @@ class InformedConsentState extends State<InformedConsentPage> {
}
}

void cancelCallback(RPTaskResult? result) async {
info("$runtimeType - Informed Consent canceled");

await showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
RPLocalizations locale = RPLocalizations.of(context)!;

return AlertDialog(
title: Text(locale.translate("pages.ic.need_accept")),
actions: <Widget>[
TextButton(
child: Text(locale.translate("pages.ic.go_to_ic")),
onPressed: () {
context.go('/consent');
},
)
],
);
},
);
}

@override
Widget build(BuildContext context) {
RPLocalizations localization = RPLocalizations.of(context)!;
Expand All @@ -64,7 +40,6 @@ class InformedConsentState extends State<InformedConsentPage> {
return RPUITask(
task: snapshot.data!,
onSubmit: resultCallback,
onCancel: cancelCallback,
);
}
}
Expand Down
Loading

0 comments on commit 1d2dce3

Please sign in to comment.