We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 433c921 commit 49d30ebCopy full SHA for 49d30eb
lib/screens/settings_screen.dart
@@ -23,13 +23,14 @@ showAlertDialog(BuildContext context) async {
23
child: Text("OK"),
24
onPressed: () {
25
DatabaseHelper.instance.deleteAllTask();
26
+ Toast.show("All data cleared", context,
27
+ duration: Toast.LENGTH_LONG,
28
+ gravity: Toast.BOTTOM);
29
Navigator.push(
30
context,
31
MaterialPageRoute(
32
builder: (_) => HomeScreen()));
- Toast.show("All data cleared", context,
- duration: Toast.LENGTH_LONG,
- gravity: Toast.BOTTOM);},
33
+ },
34
);
35
36
// set up the AlertDialog
0 commit comments