]> git.proxmox.com Git - flutter/proxmox_login_manager.git/blobdiff - lib/proxmox_login_form.dart
tree-wide: use super-initializer parameters where possible
[flutter/proxmox_login_manager.git] / lib / proxmox_login_form.dart
index 25a985f37848776395e4a469373c89a13ecf8fd5..e31d0c0dddd98838544c29c0137af97281a811d5 100644 (file)
@@ -44,7 +44,7 @@ class ProxmoxLoginForm extends StatefulWidget {
   final bool? passwordSaved;
 
   const ProxmoxLoginForm({
-    Key? key,
+    super.key,
     required this.originController,
     required this.usernameController,
     required this.passwordController,
@@ -57,7 +57,7 @@ class ProxmoxLoginForm extends StatefulWidget {
     this.onSavePasswordChanged,
     this.canSavePassword,
     this.passwordSaved,
-  }) : super(key: key);
+  });
 
   @override
   State<ProxmoxLoginForm> createState() => _ProxmoxLoginFormState();
@@ -193,12 +193,12 @@ class ProxmoxLoginPage extends StatefulWidget {
   final String? password;
 
   const ProxmoxLoginPage({
-    Key? key,
+    super.key,
     this.userModel,
     this.isCreate,
     this.ticket = '',
     this.password,
-  }) : super(key: key);
+  });
   @override
   State<ProxmoxLoginPage> createState() => _ProxmoxLoginPageState();
 }
@@ -693,9 +693,9 @@ class _ProxmoxLoginPageState extends State<ProxmoxLoginPage> {
 
 class ProxmoxProgressOverlay extends StatelessWidget {
   const ProxmoxProgressOverlay({
-    Key? key,
+    super.key,
     required this.message,
-  }) : super(key: key);
+  });
 
   final String message;
 
@@ -728,9 +728,9 @@ class ConnectionErrorDialog extends StatelessWidget {
   final Object exception;
 
   const ConnectionErrorDialog({
-    Key? key,
+    super.key,
     required this.exception,
-  }) : super(key: key);
+  });
 
   @override
   Widget build(BuildContext context) {
@@ -751,9 +751,9 @@ class ProxmoxApiErrorDialog extends StatelessWidget {
   final proxclient.ProxmoxApiException exception;
 
   const ProxmoxApiErrorDialog({
-    Key? key,
+    super.key,
     required this.exception,
-  }) : super(key: key);
+  });
 
   @override
   Widget build(BuildContext context) {
@@ -774,8 +774,8 @@ class ProxmoxApiErrorDialog extends StatelessWidget {
 
 class ProxmoxCertificateErrorDialog extends StatelessWidget {
   const ProxmoxCertificateErrorDialog({
-    Key? key,
-  }) : super(key: key);
+    super.key,
+  });
 
   @override
   Widget build(BuildContext context) {