textfield change label color from blue and when selected change label color #594
Unanswered
bobwatcherx
asked this question in
Q&A
Replies: 2 comments
-
You have to use https://flet.dev/docs/controls/textfield#label_style I will search for an example, and if there isn't I will create one. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There are no examples on this. So i made one and made a PR to flet-dev/examples; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want the textfield when I don't click the label which was originally black. I want to change it to another color and when it's clicked, the blue color on the label changes to another color but it looks like the label_color option doesn't exist. even though I want the default to not be black.
TextField(
border="none",
label="Search new Movie",
color="white",
border_color="white",
bgcolor="#242444",
focused_bgcolor="#242444",
focused_color="white",
cursor_color="white"
)
I want the default label to be white and when I click on it, the label stays white
and one more . how to use text_style I do not understand. and hint_style . the explanation is incomplete. and there are no examples
Beta Was this translation helpful? Give feedback.
All reactions