From 31e17fc51d53599d20025e088d7be6f1979c416f Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Thu, 16 Nov 2023 18:18:08 +0900 Subject: [PATCH] [sqflite] fix 3.15 deprecated WillPopScope --- packages/sqflite/example/lib/manual_test_page.dart | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/sqflite/example/lib/manual_test_page.dart b/packages/sqflite/example/lib/manual_test_page.dart index 85f9b2b8c..543e84f54 100644 --- a/packages/sqflite/example/lib/manual_test_page.dart +++ b/packages/sqflite/example/lib/manual_test_page.dart @@ -56,10 +56,6 @@ class _ManualTestPageState extends State { late List items; late List itemWidgets; - Future pop() async { - return true; - } - Future _addAndQuery({int? msDelay, bool? noSynchronized}) async { // await databaseFactory.debugSetLogLevel(sqfliteLogLevelVerbose); var db = await _openDatabase(); @@ -219,11 +215,8 @@ class _ManualTestPageState extends State { appBar: AppBar( title: const Text('Manual tests'), ), - body: WillPopScope( - onWillPop: pop, - child: ListView( - children: itemWidgets, - ), + body: ListView( + children: itemWidgets, ), ); }