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.16k stars 429 forks source link

Flet App Android - FloatingActionButton issues #1696

Closed DavMelchi closed 10 months ago

DavMelchi commented 1 year ago

when I add the app on android from the qrcode, there is the FloatingActionButton which is automatically added to the app. 1

But when open it manually with the link there is no problem.

2

Also when you delete a project the FloatingActionButton is duplicated during the period of the notification: projetc has been deleted. 3

Code example to reproduce the issue:

import flet as ft

def main(page: ft.Page):
    page.theme_mode = "light"
    page.add(
        ft.SafeArea(
            ft.Container(
                     content=ft.Text("Hello Agent Flet!"),
                     expand=True,
                     ),
            )
    )

ft.app(target=main)
flet run .\main.py --android

Flet version (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: c:\Users\HP\Documents\PROJET FLUTTER\FLET\Flet_PreTest\.venv\Lib\site-packages
Requires: copier, flet-runtime, packaging, pydantic, qrcode, watchdog, websocket-client, websockets
Required-by:

Operating system:

Windows10 / Android 13

FeodorFitsner commented 1 year ago

Confirm. Saw this behaviour a few times. Will be looking into that.

niuniudd commented 1 year ago

image hi,I scanned the QR code by camera app,browser app, wechat,but nothing to change in my 2 phones(huawei,xiaomi),how do you scan QR code?

ndonkoHenri commented 1 year ago

Use a better terminal/command line interface. Some distort the QR code, causing information loss.

niuniudd commented 1 year ago

I already scanned successful,but also didn't open the flet app in phone

https://github.com/flet-dev/flet/assets/14904226/b9ed5fb2-3c49-4163-9c57-73626ddc38f3

DavMelchi commented 1 year ago

@niuniudd do you have flet app installed on your phone ? https://play.google.com/store/apps/details?id=com.appveyor.flet&hl=fr&gl=US

niuniudd commented 1 year ago

@niuniudd do you have flet app installed on your phone ? https://play.google.com/store/apps/details?id=com.appveyor.flet&hl=fr&gl=US

😂Yes,i must install it now,but I can't install google's apps in my HUAWEI phone,also didn't install flet app, I must get flet app by other resolutions

FeodorFitsner commented 10 months ago

It should be fixed now.