fixed a lot of things after i broke everything. Just the card is not implemented again yet
time
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user