Skip to content

Commit e92e872

Browse files
authored
Update navigation-and-routing.md
I was getting compiling errors for line 12 and line 22. I noticed it had to do with the color variable, so I went ahead and keeping with the theme, switched it over to Orange 300. Now it compiles successfully.
1 parent f582337 commit e92e872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started/navigation-and-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def main(page: ft.Page):
116116
ft.View(
117117
"/",
118118
[
119-
ft.AppBar(title=ft.Text("Flet app"), bgcolor=ft.Colors.SURFACE_VARIANT),
119+
ft.AppBar(title=ft.Text("Flet app"), bgcolor=ft.Colors.ORANGE_300),
120120
ft.ElevatedButton("Visit Store", on_click=lambda _: page.go("/store")),
121121
],
122122
)
@@ -126,7 +126,7 @@ def main(page: ft.Page):
126126
ft.View(
127127
"/store",
128128
[
129-
ft.AppBar(title=ft.Text("Store"), bgcolor=ft.Colors.SURFACE_VARIANT),
129+
ft.AppBar(title=ft.Text("Store"), bgcolor=ft.Colors.ORANGE_300),
130130
ft.ElevatedButton("Go Home", on_click=lambda _: page.go("/")),
131131
],
132132
)

0 commit comments

Comments
 (0)