OutlinedButton canot set text color #684
bobwatcherx
started this conversation in
General
Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
https://flet.dev/docs/controls/outlinedbutton/elevatedbutton#style |
Beta Was this translation helpful? Give feedback.
0 replies
-
Seems like that link is incorrect. I will correct it. import flet as ft
def main(page: ft.Page):
page.add(
ft.OutlinedButton(
"Styled button 1",
style=ft.ButtonStyle(
color={
"hovered": ft.colors.WHITE, # the color to be used when the button is hovered
"focused": ft.colors.BLUE, # the color to be used when the button is on focus
"": ft.colors.YELLOW_900 # this is the color to be used by default
}
)
)
)
ft.app(target=main) This is the link: https://flet.dev/docs/controls/elevatedbutton/#style but the MaterialState has an issue as per #685, so just stick with strings("hovered", "focused", "", ...) like in my example for now :) |
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.
-
how to replace textcolor on outlinedbutton to not always blue color ?
Beta Was this translation helpful? Give feedback.
All reactions