Skip to content

Commit e10103d

Browse files
committed
Replace ElevatedButton with Button in example
Updated the flashlight example to use ft.Button instead of ft.ElevatedButton for consistency or UI preference.
1 parent 3440bf7 commit e10103d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/python/examples/services/flashlight/example_1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ async def turn_off_flashlight():
1010
await ffl.Flashlight().off()
1111

1212
page.add(
13-
ft.ElevatedButton("Turn On Flashlight", on_click=turn_on_flashlight),
14-
ft.ElevatedButton("Turn Off Flashlight", on_click=turn_off_flashlight),
13+
ft.Button("Turn On Flashlight", on_click=turn_on_flashlight),
14+
ft.Button("Turn Off Flashlight", on_click=turn_off_flashlight),
1515
)
1616

1717

0 commit comments

Comments
 (0)