changed (hopefully) everything to new List with TextEditingControllers
time forgot to save sth ig
This commit is contained in:
@@ -10,7 +10,7 @@ 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, dynamic> saveData) async {
|
||||
List<String> emptyField, Map<String, String> saveData) async {
|
||||
return showDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
@@ -39,7 +39,7 @@ class DialogHelper {
|
||||
}
|
||||
|
||||
static Future<dynamic> showServerErrorDialog(
|
||||
BuildContext context, Map<String, dynamic> saveData, bool isTemplate) {
|
||||
BuildContext context, Map<String, String> saveData, bool isTemplate) {
|
||||
bool isLoading = false;
|
||||
|
||||
return showDialog(
|
||||
@@ -89,7 +89,7 @@ class DialogHelper {
|
||||
}
|
||||
|
||||
static Future<void> showSaveOptionsDialog(BuildContext context,
|
||||
Map<String, dynamic> saveData, bool isTemplate) async {
|
||||
Map<String, String> saveData, bool isTemplate) async {
|
||||
bool isLoading = false;
|
||||
|
||||
return showDialog(
|
||||
@@ -155,7 +155,7 @@ class DialogHelper {
|
||||
SaveFileMethod.saveFile(
|
||||
saveData,
|
||||
AppLocalizations.of(context)!.savefilefailed,
|
||||
saveData["CID"]);
|
||||
saveData["CID"]!);
|
||||
setState(() => isLoading = false);
|
||||
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user