flet
flet copied to clipboard
Provide more control over the `TextField`'s borders
Discussed in https://github.com/flet-dev/flet/discussions/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.
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
------------------------------------------------------
- [X] I have searched for answers to my question both in the issues and in previous discussions.