From 4cb29b6c05b80b31118fba24faecfb72d59d3cfc Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 17 Nov 2023 11:00:07 +0900 Subject: [PATCH] [sqflite] Remove deprecated WillPopScope (#627) --- 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, ), ); }