]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commitdiff
login form: add tooltips to icon-only buttons master
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 05:33:11 +0000 (07:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 05:33:40 +0000 (07:33 +0200)
for better accessibility

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/proxmox_login_form.dart

index 6db841726e019e918cc0476831296743fd1eb1c3..735bd42d7c493aa8e39177b28963db00c6c29ebc 100644 (file)
@@ -152,6 +152,7 @@ class _ProxmoxLoginFormState extends State<ProxmoxLoginForm> {
                 child: IconButton(
                   constraints: BoxConstraints.tight(const Size(58, 58)),
                   iconSize: 24,
+                  tooltip: _obscure ? "Show password" : "Hide password",
                   icon:
                       Icon(_obscure ? Icons.visibility : Icons.visibility_off),
                   onPressed: () => setState(() {
@@ -310,6 +311,7 @@ class _ProxmoxLoginPageState extends State<ProxmoxLoginPage> {
           backgroundColor: Colors.transparent,
           leading: IconButton(
             icon: const Icon(Icons.close),
+            tooltip: "Close",
             onPressed: () => Navigator.of(context).pop(),
           ),
         ),