Feat: Fügt einen dynamisch erstell- und anzeigbaren Dialog hinzu
This commit is contained in:
36
lib/Pages/Dialog/dialog_input_field.dart
Normal file
36
lib/Pages/Dialog/dialog_input_field.dart
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user