add imege to product list

This commit is contained in:
2025-10-30 21:54:36 +02:00
parent 62675c4df7
commit 17e859bfd0

View File

@@ -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(