From 17e859bfd045efc8f1e58b8a30e68b066e799e98 Mon Sep 17 00:00:00 2001 From: Marius Robert Macamete Date: Thu, 30 Oct 2025 21:54:36 +0200 Subject: [PATCH] add imege to product list --- UI_V2/admin/products.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/UI_V2/admin/products.py b/UI_V2/admin/products.py index 3ca9c32..0b51f9c 100644 --- a/UI_V2/admin/products.py +++ b/UI_V2/admin/products.py @@ -243,10 +243,20 @@ class ProductsPage: ft.Container( content=ft.Row( [ - ft.Column( + ft.Row( [ - ft.Text(value=item['name'], weight=ft.FontWeight.BOLD, size=15), - ft.Text(value=f"Pret: {item['price']}", size=12) + ft.Image( + src=item['image'], + width=50, + height=50, + fit=ft.ImageFit.COVER + ), + ft.Column( + [ + ft.Text(value=item['name'], weight=ft.FontWeight.BOLD, size=15), + ft.Text(value=f"Pret: {item['price']}", size=12) + ] + ), ] ), ft.Row(