Skip to content

Commit

Permalink
Merge pull request #171 from non-npc/patch-18
Browse files Browse the repository at this point in the history
Update shader-mask-single-image.py to resolve TypeError
  • Loading branch information
ndonkoHenri authored Sep 12, 2024
2 parents 64ac74a + 1d36d1b commit c1b3710
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/controls/shader-mask/shader-mask-single-image.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import flet as ft


def main(page: ft.Page):
page.add(
ft.Row(
[
ft.ShaderMask(
ft.Image(
content=ft.Image(
src="https://picsum.photos/200/200?1",
width=200,
height=200,
Expand All @@ -24,5 +23,5 @@ def main(page: ft.Page):
)
)


ft.app(target=main)

0 comments on commit c1b3710

Please sign in to comment.