rewrote check_required and did some map stuff. also fixed that typed in text in add place isnt saved

This commit is contained in:
Nico
2025-05-09 22:29:34 +02:00
parent b7b16c6acb
commit cdd7f5cafb
5 changed files with 158 additions and 95 deletions

View File

@@ -10,16 +10,13 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
class DialogHelper {
// 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,
List<String> emptyField, Map<String, String> saveData) async {
Map<String, String> saveData) async {
return showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
return AlertDialog(
title: Text(AppLocalizations.of(context)!.fieldEmpty),
content: SingleChildScrollView(
child: ListBody(children: <Widget>[Text(emptyField.join("; "))]),
),
actions: <Widget>[
TextButton(
onPressed: () {