Skip to content

Commit e9f3ce1

Browse files
authored
Merge pull request #171 from non-npc/patch-18
Update shader-mask-single-image.py to resolve TypeError
2 parents 7bbd0d2 + c11bdca commit e9f3ce1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/controls/shader-mask/shader-mask-single-image.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import flet as ft
22

3-
43
def main(page: ft.Page):
54
page.add(
65
ft.Row(
76
[
87
ft.ShaderMask(
9-
ft.Image(
8+
content=ft.Image(
109
src="https://picsum.photos/200/200?1",
1110
width=200,
1211
height=200,
@@ -24,5 +23,5 @@ def main(page: ft.Page):
2423
)
2524
)
2625

27-
2826
ft.app(target=main)
27+

0 commit comments

Comments
 (0)