@@ -8,75 +8,61 @@ example_images: ../test-images/examples/material/golden/macos/button
88
99## Examples
1010
11- [ Live example] ( https://flet-controls-gallery.fly.dev/buttons/elevatedbutton )
12-
1311### Button
1412
1513``` python
1614-- 8 < -- " {{ examples }} /basic.py"
1715```
1816
19- {{ image(example_images + "/basic.png", alt="Basic button", width="50%") }}
20-
17+ {{ demo("button/basic", height="340", width="80%") }}
2118
2219### Icons
2320
2421``` python
2522-- 8 < -- " {{ examples }} /icons.py"
2623```
2724
28- {{ image(example_images + "/icons.png", alt="Basic button", width="50%") }}
29-
25+ {{ demo("button/icons", height="340", width="80%") }}
3026
3127### Handling clicks
3228
3329``` python
3430-- 8 < -- " {{ examples }} /handling_clicks.py"
3531```
3632
37- {{ image(example_images + "/handling_clicks.png", alt="Handling clicks", width="50%") }}
38-
33+ {{ demo("button/handling_clicks", height="360", width="80%") }}
3934
4035### Custom content
4136
4237``` python
4338-- 8 < -- " {{ examples }} /custom_content.py"
4439```
4540
46- {{ image(example_images + "/custom_content.png", alt="Buttons with custom content", width="50%") }}
47-
41+ {{ demo("button/custom_content", height="360", width="80%") }}
4842
4943### Shapes
5044
5145``` python
5246-- 8 < -- " {{ examples }} /button_shapes.py"
5347```
5448
55- {{ image(example_images + "/button_shapes.png", alt="Buttons with different shapes", width="50%") }}
56-
49+ {{ demo("button/button_shapes", height="380", width="80%") }}
5750
5851### Styling
5952
6053``` python
6154-- 8 < -- " {{ examples }} /styling.py"
6255```
6356
64- {{ image(example_images + "/styled_initial.png", alt="Styled button - default state", width="50%", caption="Default state") }}
65-
66-
67- {{ image(example_images + "/styled_hovered.png", alt="Styled button - hovered state", width="50%", caption="Hovered state") }}
68-
57+ {{ demo("button/styling", height="420", width="80%") }}
6958
7059### Animate on hover
7160
7261``` python
7362-- 8 < -- " {{ examples }} /animate_on_hover.py"
7463```
7564
76- {{ image(example_images + "/animate_on_hover_initial.png", alt="Unhovered button", width="50%", caption="Normal button") }}
77-
78-
79- {{ image(example_images + "/animate_on_hover_hovered.png", alt="Hovered button", width="50%", caption="Hovered button") }}
65+ {{ demo("button/animate_on_hover", height="420", width="80%") }}
8066
8167
8268{{ class_members(class_name) }}
0 commit comments