Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Conversation

@GumeeR
Copy link

@GumeeR GumeeR commented Mar 6, 2025

image_src is not a valid argument to ft.Container, so you must replace it with an ft.Image inside the Container, and also, the with_opacity() function is deprecated, so you must use ft.Colors.with_opacity() or define the color in rgba() format. this does not give a console error when you run
1

ft.Container(
bgcolor="white10",
width=128,
height=128,
shape=ft.BoxShape("circle"),
content=ft.Image(src="/profile.jpg", fit="cover"),
shadow=ft.BoxShadow(
spread_radius=6,
blur_radius=20,
color=ft.colors.with_opacity(0.71, "black"),
),
),

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant