Open
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
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...
Record_2024-11-06-08-15-04.mp4
Code sample
Code
[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
[Paste your logs here]
Additional details
No response