add image zoom
This commit is contained in:
@@ -16,7 +16,8 @@ class ProductPage:
|
|||||||
width=300,
|
width=300,
|
||||||
height=250,
|
height=250,
|
||||||
border_radius=10,
|
border_radius=10,
|
||||||
fit=ft.ImageFit.COVER
|
fit=ft.ImageFit.COVER,
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self.product_name = ft.Text(
|
self.product_name = ft.Text(
|
||||||
@@ -140,7 +141,8 @@ class ProductPage:
|
|||||||
content=ft.Container(
|
content=ft.Container(
|
||||||
self.product_main_image,
|
self.product_main_image,
|
||||||
padding=10,
|
padding=10,
|
||||||
on_click=self.on_zoom_image_btn_click
|
on_click=self.on_zoom_image_btn_click,
|
||||||
|
mouse_cursor=ft.MouseCursor.ZOOM_IN
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user