Skip to content

Commit

Permalink
[sqflite] Remove deprecated WillPopScope (flutter-tizen#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA authored and mhoeckner committed Dec 6, 2023
1 parent 91eb398 commit 4cb29b6
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 4cb29b6

Please sign in to comment.