flet icon indicating copy to clipboard operation
flet copied to clipboard

There is a problem with the size of the packaged program file

Open icsos opened this issue 10 months ago • 3 comments

The latest version of packaged program files is more than twice as large as before。 Windows10, Python 3.8.10

V0.19.0: flet pack main.py: 31,954 KB V0.19.0: pyinstaller -F -w main.py: 30,651 KB V0.22.0: flet pack main.py: 76,558 KB V0.22.0: pyinstaller -F -w main.py: 51,296 KB V0.23.2: flet pack main.py: 77,353 KB V0.23.2: pyinstaller -F -w main.py: 52.127 KB code:

import flet as ft

def main(page: ft.Page):
    page.title = "ToDo App"
    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
    page.update()

    page.add(ft.Text(value='test'))

ft.app(target=main)

requirements.txt: flet pyinstaller

icsos avatar Apr 17 '24 14:04 icsos

it‘s too big. Is there any way to reduce it?

BrentHuang avatar Apr 23 '24 10:04 BrentHuang

The new version (0.22.1) has the same issue.

icsos avatar May 11 '24 08:05 icsos

The new version (0.23.0) has the same issue.

icsos avatar Jun 19 '24 08:06 icsos

desktop, android apk, web, after build, all too big size.

BrentHuang avatar Jul 19 '24 01:07 BrentHuang

Another problem is the startup speed. After build, the startup speed is slow.

I am using flet to make a web project and a desktop project. Customers cannot accept such a large size and such a slow startup speed. These two problems greatly affect the large-scale commercial use of Flet.

BrentHuang avatar Jul 19 '24 01:07 BrentHuang

The new version (0.24.1) has the same issue. It looks like something was packed twice.

icsos avatar Sep 04 '24 11:09 icsos