We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a0462 commit 5eee261Copy full SHA for 5eee261
lib/src/components/_supa_password_field.dart
@@ -58,15 +58,18 @@ class _SupaPasswordFieldState extends State<SupaPasswordField> {
58
decoration: InputDecoration(
59
prefixIcon: widget.prefixIcon,
60
label: Text(widget.labelText),
61
- suffixIcon: IconButton(
62
- icon: Icon(
63
- _obscureText ? Icons.visibility_off : Icons.visibility,
+ suffixIcon: Tooltip(
+ message: _obscureText ? 'Show password' : 'Hide password',
+ child: IconButton(
64
+ icon: Icon(
65
+ _obscureText ? Icons.visibility_off : Icons.visibility,
66
+ ),
67
+ onPressed: () {
68
+ setState(() {
69
+ _obscureText = !_obscureText;
70
+ });
71
+ },
72
),
- onPressed: () {
- setState(() {
- _obscureText = !_obscureText;
- });
- },
73
74
75
);
0 commit comments