mod: 更换已废弃的onPopInvoked为onPopInvokedWithResult

This commit is contained in:
orz12
2024-09-08 19:09:55 +08:00
committed by bggRGjQaUbCoE
parent 4f611663cb
commit 078d9033b1
3 changed files with 7 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
Widget build(BuildContext context) {
return PopScope(
canPop: false,
onPopInvoked: (bool didPop) async {
onPopInvokedWithResult: (bool didPop, Object? result) async {
_mainController.onBackPressed(context);
},
child: Scaffold(