Feat: Fügt einen dynamisch erstell- und anzeigbaren Dialog hinzu

This commit is contained in:
2025-12-23 01:00:23 +01:00
parent 016ba85416
commit 246c0401cc
4 changed files with 267 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import 'package:flutter/material.dart';
/// Ein Input-Feld für den dynamischen Dialog
class DialogInputField {
/// Erstellt ein neues Input-Feld
const DialogInputField({
required this.id,
this.label,
this.initialValue,
this.keyboardType = TextInputType.text,
this.obscureText = false,
this.autoFocus = false,
this.onChanged,
});
/// Die Id des InputFelds
final String id;
/// Der Label des InputFelds
final String? label;
/// Der initiale Wert des InputFelds
final String? initialValue;
/// Der InputTyp des InputFeld
final TextInputType keyboardType;
/// Ob der Text obskur angezeigt werden soll
final bool obscureText;
/// Ob das Textfeld automatisch fokussiert werden soll
final bool autoFocus;
/// Was bei Veränderung des Textfeldes geschehen soll
final ValueChanged<String>? onChanged;
}