Skip to content

Commit

Permalink
[sqflite] fix 3.15 deprecated WillPopScope
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA committed Nov 16, 2023
1 parent 122587d commit 31e17fc
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/sqflite/example/lib/manual_test_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ class _ManualTestPageState extends State<ManualTestPage> {
late List<SqfMenuItem> items;
late List<ItemWidget> itemWidgets;

Future<bool> pop() async {
return true;
}

Future<void> _addAndQuery({int? msDelay, bool? noSynchronized}) async {
// await databaseFactory.debugSetLogLevel(sqfliteLogLevelVerbose);
var db = await _openDatabase();
Expand Down Expand Up @@ -219,11 +215,8 @@ class _ManualTestPageState extends State<ManualTestPage> {
appBar: AppBar(
title: const Text('Manual tests'),
),
body: WillPopScope(
onWillPop: pop,
child: ListView(
children: itemWidgets,
),
body: ListView(
children: itemWidgets,
),
);
}
Expand Down

0 comments on commit 31e17fc

Please sign in to comment.