-
Notifications
You must be signed in to change notification settings - Fork 599
Description
Description
page didn`t display images when i run the program in browser(edge),then I set hot reload,run the pragram,the image can be displayed
Code example to reproduce the issue:
self.appBAR = Container(
content=Row(
controls=[
Image(
src="./resoucres/images/logo3.png",
width=60, height=60,
border_radius=border_radius.all(5),
fit=ImageFit.COVER,
# color_blend_mode=BlendMode.COLOR
),
FloatingActionButton(icon=icons.HOME, text="主页",
shape=BeveledRectangleBorder(radius=1),
on_click=self.switch_tab),
FloatingActionButton(icon=icons.PAGES, text="博客",
shape=RoundedRectangleBorder(radius=1),
on_click=self.switch_tab),
FloatingActionButton(icon=icons.CHAT, text="论坛",
shape=CountinuosRectangleBorder(radius=1),
on_click=self.switch_tab),
FloatingActionButton(icon=icons.BUG_REPORT, text="爬虫",
shape=CountinuosRectangleBorder(radius=1),
on_click=self.switch_tab),
]
)
)
self.t = Stack([
Image(
src="./resoucres/images/background.png",
width=1000,
height=800,
fit=ImageFit.CONTAIN,
),
Text("当前位置:主页"),
],
width=1000,
height=800,
)
Describe the results you received:
run the program in browser:

set hot reload,display like this,the 2 images display success

Describe the results you expected:
images should be displayed in browser
Additional information you deem important (e.g. issue happens only occasionally):
Flet version (pip show flet):
C:\Users\Administrator>pip show flet
Name: flet
Version: 0.9.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: D:\Python\Python311\Lib\site-packages
Requires: copier, flet-runtime, packaging, pydantic, qrcode, watchdog, websocket-client, websockets
Required-by:
Operating system:
Windows11
