add imege to product list
This commit is contained in:
@@ -243,10 +243,20 @@ class ProductsPage:
|
|||||||
ft.Container(
|
ft.Container(
|
||||||
content=ft.Row(
|
content=ft.Row(
|
||||||
[
|
[
|
||||||
ft.Column(
|
ft.Row(
|
||||||
[
|
[
|
||||||
ft.Text(value=item['name'], weight=ft.FontWeight.BOLD, size=15),
|
ft.Image(
|
||||||
ft.Text(value=f"Pret: {item['price']}", size=12)
|
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(
|
ft.Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user