flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.5k stars 449 forks source link

Apk App Launch Error #4312

Open Siva-Rajan-R opened 2 weeks ago

Siva-Rajan-R commented 2 weeks ago

Duplicate Check

Describe the bug

I build an apk installed on my Android Mobile when i launch it initially it will open but taking too much time and after closing , again launch the app it's closing the app immediately and it repeating...

https://github.com/user-attachments/assets/31855e00-beb8-487f-8ac4-3e2715a6edf1

Code sample

Code ```python [Paste your code here] import flet as ft def main(page: ft.Page): page.title = "Flet on Google IDX" page.theme_mode = ft.ThemeMode.LIGHT page.vertical_alignment = ft.MainAxisAlignment.CENTER page.horizontal_alignment = ft.CrossAxisAlignment.CENTER page.appbar = ft.AppBar( title=ft.Text("Flet on Google IDX"), center_title=True, bgcolor=ft.colors.LIGHT_BLUE_600, ) def handle_minus_click(e: ft.ControlEvent): counter.value = str(int(counter.value) - 1) page.update() def handle_plus_click(e: ft.ControlEvent): counter.value = str(int(counter.value) + 1) page.update() counter = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100) page.add( ft.Row( alignment=ft.MainAxisAlignment.CENTER, controls=[ ft.IconButton(ft.icons.REMOVE, on_click=handle_minus_click), counter, ft.IconButton(ft.icons.ADD, on_click=handle_plus_click), ], ), ft.Text("Made with ❤️ by TheEthicalBoy!", size=13), ) ft.app(main, view=ft.AppView.WEB_BROWSER) ```

To reproduce

1.improve stability and speed of launching application 2.fix autoclosing

Expected behavior

No response

Screenshots / Videos

Captures [Upload media here]

Operating System

Windows

Operating system details

windows 11

Flet version

flet==0.25.0.dev3526

Regression

No, it isn't

Suggestions

No response

Logs

Logs ```console [Paste your logs here] ```

Additional details

No response

FeodorFitsner commented 2 weeks ago

Could you please provide the app to reproduce as well as the list of dependencies.

Siva-Rajan-R commented 2 weeks ago

now i mentioned the code on above code sample section.and the requirements.txt file contain this

requirements.txt flet==0.25.0.dev3526