From d0d9d0fd86d9c957afa13aff5b32ccc1739a452e Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Wed, 22 Nov 2023 13:26:49 +0100 Subject: [PATCH] Ignore WillPopScope deprecations for now Migration is easy, but breaks backwards-compatbility... Thanks, Flutter! --- lib/mode/dialog_report_mode.dart | 2 ++ lib/mode/page_report_mode.dart | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/mode/dialog_report_mode.dart b/lib/mode/dialog_report_mode.dart index 974adf9a..221c5394 100644 --- a/lib/mode/dialog_report_mode.dart +++ b/lib/mode/dialog_report_mode.dart @@ -34,6 +34,7 @@ class DialogReportMode extends ReportMode { } Widget _buildCupertinoDialog(Report report, BuildContext context) => + // ignore: deprecated_member_use WillPopScope( onWillPop: () async { super.onActionRejected(report); @@ -56,6 +57,7 @@ class DialogReportMode extends ReportMode { ); Widget _buildMaterialDialog(Report report, BuildContext context) => + // ignore: deprecated_member_use WillPopScope( onWillPop: () async { super.onActionRejected(report); diff --git a/lib/mode/page_report_mode.dart b/lib/mode/page_report_mode.dart index 4b72cb88..5e9a446d 100644 --- a/lib/mode/page_report_mode.dart +++ b/lib/mode/page_report_mode.dart @@ -64,6 +64,7 @@ class PageWidget extends StatefulWidget { class PageWidgetState extends State { @override + // ignore: deprecated_member_use Widget build(BuildContext context) => WillPopScope( onWillPop: () async { widget.pageReportMode.onActionRejected(widget.report);