From 60fa58e063575f6a472c226dcd126f0c0fad5ac8 Mon Sep 17 00:00:00 2001 From: Juan Mayorquin <115513742+GumeeR@users.noreply.github.com> Date: Thu, 6 Mar 2025 00:43:29 -0500 Subject: [PATCH] with_opacity() obsolete --- profileApp/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/profileApp/main.py b/profileApp/main.py index 3c07543..984383c 100644 --- a/profileApp/main.py +++ b/profileApp/main.py @@ -56,13 +56,11 @@ def __init__(self, page: ft.Page): width=128, height=128, shape=ft.BoxShape("circle"), - # Define image for profile picture - image_src="/profile.jpg", - image_fit="cover", + 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"), + color=ft.Colors.with_opacity(0.71, "black"), ), ), ft.Divider(height=10, color="transparent"),