fixed a lot of things after i broke everything. Just the card is not implemented again yet

time
This commit is contained in:
Nico
2025-05-12 23:09:28 +02:00
parent 97691f3453
commit 74b4648e73
18 changed files with 599 additions and 479 deletions

View File

@@ -10,7 +10,7 @@ import 'package:fforte/l10n/app_localizations.dart';
class AddEntriesDialogHelper {
// Function to show the dialog where the user has to choose if he want to safe his values as a template
static Future<void> showTemplateDialog(BuildContext context,
Map<String, String> saveData, bool update) async {
Map<String, String> saveData) async {
return showDialog(
context: context,
barrierDismissible: false,
@@ -25,7 +25,7 @@ class AddEntriesDialogHelper {
child: Text(AppLocalizations.of(context)!.cancel)),
TextButton(
onPressed: () {
saveTemplate(saveData, DatabasesEnum.place, update);
saveTemplate(saveData, DatabasesEnum.place);
Navigator.pushNamedAndRemoveUntil(
context, '/home', (route) => false);
},
@@ -111,7 +111,7 @@ class AddEntriesDialogHelper {
onPressed: () async {
setState(() => isLoading = true);
saveTemplate(
saveData, DatabasesEnum.place, isTemplate);
saveData, DatabasesEnum.place);
Navigator.pushNamedAndRemoveUntil(
context, '/home', (route) => false);
},