Properties¶
src¶
Required image URL or local file path.
show_close_button¶
Shows the viewer's close button when enabled.
BoxFit¶
Controls how the image fits inside the viewer. Common values include
ft.BoxFit.CONTAIN and ft.BoxFit.COVER.
overlay¶
Places a Flet control over the image viewer. Use it for labels, actions, or status information.
min_scale and max_scale¶
Set the minimum and maximum zoom levels.
Layout properties¶
As a LayoutControl, the viewer also supports layout properties such as
expand, width, height, padding, alignment, and visible.