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.55k stars 452 forks source link

`flet build` generates APK with a black icon #4244

Closed FeodorFitsner closed 3 weeks ago

FeodorFitsner commented 4 weeks ago

Duplicate Check

Describe the bug

Building APK with default settings yields black icon. Related Flutter issue: https://github.com/fluttercommunity/flutter_launcher_icons/issues/600

Code sample

Code ```python import flet as ft def main(page: ft.Page): page.add(ft.SafeArea(ft.Text("Hello, Flet!"))) ft.app(main) ```

To reproduce

[tool.poetry]
name = "my_app"
version = "1.0.0"
description = "My first Flet project"
authors = ["Feodor Fitsner"]

[tool.poetry.dependencies]
python = "^3.8"
flet = "0.25.0.dev3526"

Run the following command to build APK:

flet build apk

Expected behavior

No response

Screenshots / Videos

Captures [Upload media here]

Operating System

macOS

Operating system details

Any version

Flet version

0.25.0

Regression

I'm not sure / I don't know

Suggestions

Set adaptive_icon_background to any non-black color, for example white:

[tool.flet]
android.adaptive_icon_background = "#ffffff"

[tool.poetry]
name = "my_app"
version = "1.0.0"
description = "My first Flet project"
authors = ["Feodor Fitsner"]

[tool.poetry.dependencies]
python = "^3.8"
flet = "0.25.0.dev3526"

Logs

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

Additional details

No response

fasilwdr commented 3 weeks ago

@FeodorFitsner @ndonkoHenri Could you please address this issue as a priority?