how to change color and style in NavigationBarDestination #4094
-
how to change color and style on label in NavigationBarDestination |
Beta Was this translation helpful? Give feedback.
Answered by
ndonkoHenri
Oct 5, 2024
Replies: 1 comment
-
You can do it through the navbar theme: def main(page.ft.Page):
page.theme = page.dark_theme = ft.Theme(
navigation_bar_theme=ft.NavigationBarTheme(
label_text_style={
ft.ControlState.DEFAULT: ft.TextStyle(color=ft.colors.YELLOW),
ft.ControlState.SELECTED: ft.TextStyle(color=ft.colors.RED),
},
)
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ndonkoHenri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do it through the navbar theme: