Skip to content

Commit

Permalink
fix: 3.15 deprecated WillPopScope
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Sep 24, 2023
1 parent cdd45e1 commit c0defa9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions 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 c0defa9

Please sign in to comment.