Skip to content

Commit 49d30eb

Browse files
committed
Bug Fix
1 parent 433c921 commit 49d30eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/screens/settings_screen.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ showAlertDialog(BuildContext context) async {
2323
child: Text("OK"),
2424
onPressed: () {
2525
DatabaseHelper.instance.deleteAllTask();
26+
Toast.show("All data cleared", context,
27+
duration: Toast.LENGTH_LONG,
28+
gravity: Toast.BOTTOM);
2629
Navigator.push(
2730
context,
2831
MaterialPageRoute(
2932
builder: (_) => HomeScreen()));
30-
Toast.show("All data cleared", context,
31-
duration: Toast.LENGTH_LONG,
32-
gravity: Toast.BOTTOM);},
33+
},
3334
);
3435

3536
// set up the AlertDialog

0 commit comments

Comments
 (0)