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

Badge property and Map Control not working on Android #4362

Open Siva-Rajan-R opened 1 week ago

Siva-Rajan-R commented 1 week ago

Duplicate Check

Describe the bug

badge, After updation of flet==0.25.dev3717 the badge property is added to every controls and i tried it .it works fine on Windows but,It was not working on Android

Map, The map Control works fine on both windows and android before updating flet==0.25.0.dev3717.but after update its only work on Windows not on Android

Code sample

Code ```python [Paste your code here] ```

To reproduce

1.Fix the badge property to work on Android 2.Fix the Map to work on Android

Expected behavior

Badge and map wants to work on Android properly

Screenshots / Videos

Captures [Upload media here] ![IMG-20241113-WA0005](https://github.com/user-attachments/assets/27cd0641-180a-42ab-84ae-8df4acc0db64) ![IMG-20241113-WA0004](https://github.com/user-attachments/assets/19755631-357c-4470-93a9-ef626a326ad5) ![Screenshot_2024-11-12-23-18-10-19_b3c61c1ad2a7062e9ad6b926200ddbc2](https://github.com/user-attachments/assets/cc149d55-c32b-4e1c-9c2c-962cb09dbfb7) ![Screenshot_2024-11-12-23-13-21-11_b3c61c1ad2a7062e9ad6b926200ddbc2](https://github.com/user-attachments/assets/d9b6cd36-2035-4030-a94e-aed8ef512f72)

Operating System

Windows

Operating system details

windows 11

Flet version

0.25.0.dev3717

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

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

Additional details

It works on flet==0.24.1

ndonkoHenri commented 1 week ago

Can you share your requirements file? Make sure you set the right Flet version in it.

Siva-Rajan-R commented 1 week ago

@ndonkoHenri flet==0.25.0.dev3721 websockets==14.0 requests==2.32.3 pytz==2024.2

this is my requirements.txt

ndonkoHenri commented 1 week ago

Was able to reproduce the issue with the latest pre-release:

import flet as ft

def main(page: ft.Page):
    page.appbar = ft.AppBar(
        title=ft.Text("Badge Playground"),
        center_title=True,
        bgcolor=ft.colors.LIGHT_BLUE_300,
    )
    page.add(
        ft.OutlinedButton(text="This is a Button", badge=ft.Badge(text="New")),
    )

ft.app(main)

Actual

image

Expected

(running on dev mode) Bildschirmfoto 2024-11-14 um 16 00 23

Siva-Rajan-R commented 1 week ago

@ndonkoHenri Not only badge , the map Control also not working as we expected on Android