Skip to content

Commit

Permalink
Merge pull request #164 from non-npc/patch-13
Browse files Browse the repository at this point in the history
replace the deprecated `NavigationDestination` with `NavigationBarDestination` in navigation-bar-sample.py
  • Loading branch information
ndonkoHenri authored Sep 12, 2024
2 parents a00657c + 6a61b97 commit 728f644
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/controls/navigation-bar/navigation-bar-sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ def main(page: ft.Page):
page.title = "NavigationBar Example"
page.navigation_bar = ft.NavigationBar(
destinations=[
ft.NavigationDestination(icon=ft.icons.EXPLORE, label="Explore"),
ft.NavigationDestination(icon=ft.icons.COMMUTE, label="Commute"),
ft.NavigationDestination(
ft.NavigationBarDestination(icon=ft.icons.EXPLORE, label="Explore"),
ft.NavigationBarDestination(icon=ft.icons.COMMUTE, label="Commute"),
ft.NavigationBarDestination(
icon=ft.icons.BOOKMARK_BORDER,
selected_icon=ft.icons.BOOKMARK,
label="Explore",
Expand Down

0 comments on commit 728f644

Please sign in to comment.