Skip to content

Commit 3d738b6

Browse files
authored
Update navigation-bar-sample.py
replace the deprecated NavigationDestination with NavigationBarDestination
1 parent 7dad08d commit 3d738b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/controls/navigation-bar/navigation-bar-sample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ def main(page: ft.Page):
66
page.title = "NavigationBar Example"
77
page.navigation_bar = ft.NavigationBar(
88
destinations=[
9-
ft.NavigationDestination(icon=ft.icons.EXPLORE, label="Explore"),
10-
ft.NavigationDestination(icon=ft.icons.COMMUTE, label="Commute"),
11-
ft.NavigationDestination(
9+
ft.NavigationBarDestination(icon=ft.icons.EXPLORE, label="Explore"),
10+
ft.NavigationBarDestination(icon=ft.icons.COMMUTE, label="Commute"),
11+
ft.NavigationBarDestination(
1212
icon=ft.icons.BOOKMARK_BORDER,
1313
selected_icon=ft.icons.BOOKMARK,
1414
label="Explore",

0 commit comments

Comments
 (0)