Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more control over the TextField's borders #4140

Open
1 task done
ndonkoHenri opened this issue Oct 11, 2024 Discussed in #4136 · 0 comments · May be fixed by #4735
Open
1 task done

Provide more control over the TextField's borders #4140

ndonkoHenri opened this issue Oct 11, 2024 Discussed in #4136 · 0 comments · May be fixed by #4735
Assignees
Labels
controls enhancement Improvement/Optimization

Comments

@ndonkoHenri
Copy link
Contributor

Discussed in #4136

Originally posted by MatsuSpring October 11, 2024

Question

I'm trying to change the color of the underline in a TextField control where the border property is set to ft.InputBorder.UNDERLINE.
However, even when I try to change the color using the border_color property as shown in the code below, the underline color remains the same.

image

Is this a known limitation of Flet, or am I missing something?
Does anyone have any suggestions or solutions?

(Apologies if the English translation is a bit awkward, as it was generated by Gemini.)

Code sample

import flet as ft

def main(page: ft.Page):
    tf = ft.TextField(
        label="Input Name",
        border=ft.InputBorder.UNDERLINE,
        border_color=ft.colors.ORANGE
    )

    page.add(tf)

ft.app(main)

Error message

No response

------------------------------------------------------

  • I have searched for answers to my question both in the issues and in previous discussions.
@ndonkoHenri ndonkoHenri added help wanted Extra attention is needed enhancement Improvement/Optimization controls and removed help wanted Extra attention is needed labels Oct 11, 2024
@ndonkoHenri ndonkoHenri self-assigned this Oct 11, 2024
@ndonkoHenri ndonkoHenri moved this from 🆕 New to 👀 In review in Flet Development Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls enhancement Improvement/Optimization
Projects
Status: 👀 In review
Development

Successfully merging a pull request may close this issue.

1 participant