Skip to content

Commit

Permalink
Ignore WillPopScope deprecations for now
Browse files Browse the repository at this point in the history
Migration is easy, but breaks backwards-compatbility... Thanks, Flutter!
  • Loading branch information
ThexXTURBOXx committed Nov 22, 2023
1 parent 9d60396 commit d0d9d0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mode/dialog_report_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class DialogReportMode extends ReportMode {
}

Widget _buildCupertinoDialog(Report report, BuildContext context) =>
// ignore: deprecated_member_use
WillPopScope(
onWillPop: () async {
super.onActionRejected(report);
Expand All @@ -56,6 +57,7 @@ class DialogReportMode extends ReportMode {
);

Widget _buildMaterialDialog(Report report, BuildContext context) =>
// ignore: deprecated_member_use
WillPopScope(
onWillPop: () async {
super.onActionRejected(report);
Expand Down
1 change: 1 addition & 0 deletions lib/mode/page_report_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class PageWidget extends StatefulWidget {

class PageWidgetState extends State<PageWidget> {
@override
// ignore: deprecated_member_use
Widget build(BuildContext context) => WillPopScope(
onWillPop: () async {
widget.pageReportMode.onActionRejected(widget.report);
Expand Down

0 comments on commit d0d9d0f

Please sign in to comment.