add imege to product list
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user