flet icon indicating copy to clipboard operation
flet copied to clipboard

Simple Logic Error in Textfeild ( can_reveal_password )

Open Youssef3082004 opened this issue 1 year ago • 0 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the bug

eye icon with slash on it the password is appear and vice versa

Code sample

return TextField( label=label, rtl=True if self.Language_ == "AR" else False, prefix_icon=icon, password=password, can_reveal_password=password, hint_text=hint_text, text_style=TextStyle(size=15, weight=FontWeight.W_500,font_family="Alex"), label_style=TextStyle(size=20, weight=FontWeight.W_600, color=Colors.BLUE_600,font_family="Andalus"), hint_style=TextStyle(color=Colors.BLACK38,font_family="Alex"), border=InputBorder.OUTLINE, border_color="blue", width=300, keyboard_type=keyboard_type )

To reproduce

no repoduce

Expected behavior

when eye icon with slash on it the password should disappear and vice versa

Screenshots / Videos

https://github.com/user-attachments/assets/46475e54-ef75-490d-bd24-e99849320a84

Operating System

Windows

Operating system details

Windows 10 (10.0.19045)

Flet version

0.27.1

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Youssef3082004 avatar Feb 25 '25 21:02 Youssef3082004