Feat: Fügt einen dynamisch erstell- und anzeigbaren Dialog hinzu
This commit is contained in:
14
lib/Pages/Dialog/dialog_action.dart
Normal file
14
lib/Pages/Dialog/dialog_action.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
/// Action/Knopf für den Dialog
|
||||
class DialogAction {
|
||||
/// Erstellt eine neue Aktion für den Dialog
|
||||
DialogAction({required this.label, this.isPrimary = false, this.onPressed});
|
||||
|
||||
/// Das Label der Aktion
|
||||
final String label;
|
||||
|
||||
/// Ob es die primäre Aktion ist
|
||||
final bool isPrimary;
|
||||
|
||||
/// Was bei einem Knopfdruck passieren soll
|
||||
final void Function(Map<String, String> inputValues)? onPressed;
|
||||
}
|
||||
Reference in New Issue
Block a user