rewrote check_required and did some map stuff. also fixed that typed in text in add place isnt saved
This commit is contained in:
@@ -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: () {
|
||||
|
||||
Reference in New Issue
Block a user