Skip to content

Commit ae06c5c

Browse files
committed
test
1 parent 847be5c commit ae06c5c

File tree

6 files changed

+44
-17
lines changed

6 files changed

+44
-17
lines changed

sdk/python/examples/poc/src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def prepare_page():
154154
page.clean()
155155
page.overlay.clear()
156156
page.pop_dialog()
157-
page.floating_action_button = None
157+
page.theme = page.dark_theme = page.floating_action_button = None
158158
page.update()
159159

160160
def render_example(slug: str):

sdk/python/packages/flet/docs/controls/checkbox.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ example_images: ../test-images/examples/material/golden/macos/checkbox
88

99
## Examples
1010

11-
[Live example](https://flet-controls-gallery.fly.dev/input/checkbox)
12-
1311
### Basic Example
1412

1513
```python
@@ -18,6 +16,7 @@ example_images: ../test-images/examples/material/golden/macos/checkbox
1816

1917
{{ image(example_images + "/basic.png", alt="basic", width="50%", caption="After clicking Submit") }}
2018

19+
{{ iframe(route="checkbox/basic", height="520") }}
2120

2221
### Handling events
2322

@@ -27,6 +26,7 @@ example_images: ../test-images/examples/material/golden/macos/checkbox
2726

2827
{{ image(example_images + "/handling_events.png", alt="handling-events", width="50%", caption="After three clicks") }}
2928

29+
{{ iframe(route="checkbox/handling_events", height="520") }}
3030

3131
### Styled checkboxes
3232

@@ -36,4 +36,6 @@ example_images: ../test-images/examples/material/golden/macos/checkbox
3636

3737
{{ image(example_images + "/styled_checkboxes.png", alt="Styled checkboxes", width="50%") }}
3838

39+
{{ iframe(route="checkbox/styled", height="520") }}
40+
3941
{{ class_members(class_name) }}

sdk/python/packages/flet/docs/extras/macros/__init__.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,43 @@ def flet_cli_as_markdown(command: str = "", subcommands_only: bool = True):
127127
command=command, subcommands_only=subcommands_only
128128
)
129129

130+
@env.macro
131+
def iframe(
132+
src=None,
133+
*,
134+
route=None,
135+
base="http://127.0.0.1:60222/",
136+
width="100%",
137+
height="480",
138+
title=None,
139+
allow=None,
140+
loading="lazy",
141+
):
142+
"""
143+
Renders an iframe block.
144+
145+
Args:
146+
src: Full iframe source URL. If omitted, `route` and `base` are combined.
147+
route: Path on the PoC site (e.g., `"checkbox/basic"`).
148+
base: Base URL for the PoC site.
149+
width, height, title, allow, loading: Standard iframe attributes.
150+
"""
151+
if route:
152+
src = base.rstrip("/") + "/" + route.lstrip("/")
153+
if not src:
154+
raise ValueError("Either src or route must be provided")
155+
attrs = [
156+
f'src="{src}"',
157+
f'width="{width}"',
158+
f'height="{height}"',
159+
'style="border:0;"',
160+
f'title="{title or "iframe"}"',
161+
f'loading="{loading}"',
162+
]
163+
if allow:
164+
attrs.append(f'allow="{allow}"')
165+
return f"<iframe {' '.join(attrs)}></iframe>"
166+
130167
@env.macro
131168
def controls_overview():
132169
return render_controls_overview()

sdk/python/packages/flet/docs/types/cupertinoicons.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

sdk/python/packages/flet/docs/types/icons.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

sdk/python/packages/flet/mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ nav:
772772
- CupertinoColors: types/cupertinocolors.md
773773
- CupertinoDatePickerDateOrder: types/cupertinodatepickerdateorder.md
774774
- CupertinoDatePickerMode: types/cupertinodatepickermode.md
775-
- CupertinoIcons: types/cupertinoicons.md
775+
# - CupertinoIcons: types/cupertinoicons.md
776776
- CupertinoTimerPickerMode: types/cupertinotimerpickermode.md
777777
- DataTable2:
778778
- DataColumnSize: datatable2/types/data_column_size.md
@@ -784,7 +784,7 @@ nav:
784784
- FloatingActionButtonLocation: types/floatingactionbuttonlocation.md
785785
- FontWeight: types/fontweight.md
786786
- GradientTileMode: types/gradienttilemode.md
787-
- Icons: types/icons.md
787+
# - Icons: types/icons.md
788788
- ImageRepeat: types/imagerepeat.md
789789
- KeyboardType: types/keyboardtype.md
790790
- LabelPosition: types/labelposition.md

0 commit comments

Comments
 (0)