Skip to content

how to change color and style in NavigationBarDestination #4094

Closed Answered by ndonkoHenri
OmarBelfeki asked this question in Q&A
Discussion options

You must be logged in to vote

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),
                },
            )
        )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ndonkoHenri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants