-
QuestionI can't edit page with on_change() event in NavigationBar. When i run app, page loading with Code sampledef change(e: ft.ControlEvent):
page.controls = []
page.update()
match e.control.selected_index:
case 0:
init_clicker(page)
page.update()
case 1:
init_history(page)
page.update()
page.navigation_bar = ft.NavigationBar(
on_change=change,
destinations=[
ft.NavigationDestination(icon=ft.icons.MOUSE_OUTLINED, selected_icon=ft.icons.MOUSE, label='Click'),
ft.NavigationDestination(icon=ft.icons.HISTORY, label='History')
]
)
init_clicker(page)
page.update() Error messageNone ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
bleudev
Jun 29, 2023
Replies: 1 comment
-
i found answer fo rmy discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bleudev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i found answer fo rmy discussion