`value` property is deprecated in favor of `initialValue` starting from
v3.35 [0]. Replaced the use of `value` prop with `initialValue`. Additionaly,
removed the library name, as that is not necessary anymore [1].

[0] - 
https://docs.flutter.dev/release/breaking-changes/deprecate-dropdownbuttonformfield-value
[1] - https://dart.dev/tools/linter-rules/unnecessary_library_name

Signed-off-by: Shan Shaji <[email protected]>
---
 lib/proxmox_login_form.dart    | 2 +-
 lib/proxmox_login_manager.dart | 2 +-
 lib/proxmox_tfa_form.dart      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/proxmox_login_form.dart b/lib/proxmox_login_form.dart
index b69636d..5b9a64e 100644
--- a/lib/proxmox_login_form.dart
+++ b/lib/proxmox_login_form.dart
@@ -125,7 +125,7 @@ class _ProxmoxLoginFormState extends 
State<ProxmoxLoginForm> {
             onChanged: widget.onDomainChanged,
             selectedItemBuilder: (context) =>
                 widget.accessDomains!.map((e) => Text(e!.realm)).toList(),
-            value: widget.selectedDomain,
+            initialValue: widget.selectedDomain,
           ),
           Stack(
             children: [
diff --git a/lib/proxmox_login_manager.dart b/lib/proxmox_login_manager.dart
index 8b09583..7868683 100644
--- a/lib/proxmox_login_manager.dart
+++ b/lib/proxmox_login_manager.dart
@@ -1,4 +1,4 @@
-library proxmox_login_manager;
+library;
 
 export 'proxmox_login_selector.dart';
 export 'proxmox_login_model.dart';
diff --git a/lib/proxmox_tfa_form.dart b/lib/proxmox_tfa_form.dart
index ba18c54..79273fa 100644
--- a/lib/proxmox_tfa_form.dart
+++ b/lib/proxmox_tfa_form.dart
@@ -99,7 +99,7 @@ class _ProxmoxTfaFormState extends State<ProxmoxTfaForm> {
                                   },
                                   selectedItemBuilder: (context) =>
                                       _tfaKinds.map((e) => Text(e)).toList(),
-                                  value: _selectedTfaKind,
+                                  initialValue: _selectedTfaKind,
                                 ),
                                 TextField(
                                     controller: _codeController,
-- 
2.47.3




Reply via email to