fixed error where complete entries are shown as incomplete and made ui enhancements to overview
This commit is contained in:
@@ -258,7 +258,7 @@ class AddEntriesDialogHelper {
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint(e.toString());
|
||||
print(e.toString());
|
||||
}
|
||||
},
|
||||
child: Text(AppLocalizations.of(context)!.justsave),
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:fforte/screens/sharedMethods/delete_templates.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ViewEntriesDialogHelper {
|
||||
static void deleteAllMainEntries(
|
||||
static Future<void> deleteAllMainEntries(
|
||||
BuildContext context,
|
||||
DatabasesEnum dbType,
|
||||
) async {
|
||||
@@ -24,10 +24,10 @@ class ViewEntriesDialogHelper {
|
||||
),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
DeleteMainEntries.deleteAll(dbType);
|
||||
onPressed: () async {
|
||||
await DeleteMainEntries.deleteAll(dbType);
|
||||
|
||||
Navigator.of(context).pop();
|
||||
if (context.mounted) Navigator.of(context).pop();
|
||||
},
|
||||
child: Text(AppLocalizations.of(context)!.deleteEverything),
|
||||
),
|
||||
@@ -43,7 +43,7 @@ class ViewEntriesDialogHelper {
|
||||
);
|
||||
}
|
||||
|
||||
static void deleteAllTemplates(
|
||||
static Future<void> deleteAllTemplates(
|
||||
BuildContext context,
|
||||
DatabasesEnum dbType,
|
||||
) async {
|
||||
@@ -62,9 +62,9 @@ class ViewEntriesDialogHelper {
|
||||
),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
DeleteTemplates.deleteAll(dbType);
|
||||
Navigator.of(context).pop();
|
||||
onPressed: () async {
|
||||
await DeleteTemplates.deleteAll(dbType);
|
||||
if (context.mounted) Navigator.of(context).pop();
|
||||
},
|
||||
child: Text(AppLocalizations.of(context)!.deleteEverything),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user