flet
flet copied to clipboard
bug: Local images can not be displayed on Flet app for android.
Duplicate Check
- [x] I have searched the opened issues and there are no duplicates
Describe the bug
Local images on windows are not being displayed in the Flet app for android
Code sample
Code
import flet as ft
def main(page: ft.Page):
page.title = "Images Example"
page.theme_mode = ft.ThemeMode.LIGHT
page.padding = 50
img = ft.Image(
src="img.png", # no slashes
width=100,
height=100,
fit=ft.ImageFit.CONTAIN,
)
images = ft.Row(expand=1, wrap=False, scroll=ft.ScrollMode.ALWAYS)
txt = ft.Text("The image should be here", color=ft.Colors.BLACK)
page.add(img, images, txt)
ft.app(main, assets_dir="assets")
To reproduce
Run flet run --android in terminal Scan QR-code Open up flet app
Expected behavior
The image won't be displayed
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
Version 25H2 (OS Build 26200.7171)
Flet version
0.28.3
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response