Replies: 1 comment
-
By the way, I found this problem when testing potential memory leak when using ② I am building a program that needs to remove and re-build pages again and again; I seem like finding a bug (Issue #1628). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
MatplotlibChart
instance cannot be a row/column inft.Row
orft.Column
inft.UserControl
. Otherwise,MatplotlibChart
instance will overridebuild()
.Code example to reproduce the issue:
Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):
in
build()
, inreturn
, replacing the linechart,
withwill get the expected result. i.e. need to use a
Container
to wrapMatplotlibChart
instance to work.It seems like it only have problem when
ft.UserControl
is aft.Row
orft.Column
. Ifft.UserControl
is aMatplotlibChart
by itself, everything works as expected. For example:Flet version (
pip show flet
):0.74
Operating system:
Windows 10, PyCharm 2023.1.2 (Community Edition), Build #PC-231.9011.38, built on May 16, 2023
Beta Was this translation helpful? Give feedback.
All reactions