diff --git a/lib/main.dart b/lib/main.dart index b242f1a..f46c4cc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -708,7 +708,9 @@ class AddTransactionDialogState extends State { color: Colors.black54, ), ), - content: Column( + content: Form( + key: _formKey, // Hier wird das _formKey dem Form-Widget zugewiesen + child: Column( mainAxisSize: MainAxisSize.min, children: [ Neumorphic( @@ -787,7 +789,7 @@ class AddTransactionDialogState extends State { ], ), ], - ), + )), actions: [ NeumorphicButton( onPressed: () {