Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Apk Icon not produced properly #4550

Open
1 task done
HappyCoder256 opened this issue Dec 12, 2024 · 0 comments
Open
1 task done

Android Apk Icon not produced properly #4550

HappyCoder256 opened this issue Dec 12, 2024 · 0 comments

Comments

@HappyCoder256
Copy link

Duplicate Check

Describe the bug

Am kind of experiencing an error when producing the Android Apk icon. My root directory already has a the assests folder consisting of the favicon.png image but in previous version, the icon was produced and cropped very well. I don't know if am the only one experiencing this. Below is the image of the Produced app icon when installed on Android;
Android Version: 10
Flet version: 0.25.1
Operating System: Linux
Screenshot_20241212-164655_One UI Home

Code sample

from flet import *
import flet
def main(page : Page):
page.padding = 0
cine = Stack([
Container(
width=page.width,
height=page.height,
content=Image(
src=f"./assets/N9ini_special/n9ini.jpeg",
width=page.width,
height=page.height,
fit=ImageFit.COVER,
),expand=True
),
Container(
content=Column([
Row([
IconButton(
icon=Icons.ARROW_BACK_IOS_NEW_ROUNDED, # Movies icon
icon_size=24, # Icon size
tooltip="back", # Tooltip
#on_click=julie_back
),
],
alignment=MainAxisAlignment.SPACE_BETWEEN, # Add more spacing between the sections
#tight=True, # Prevent the row from expanding and causing extra black space
#expand=True,
vertical_alignment=CrossAxisAlignment.CENTER,),
Container(
content=Container(
content=Column([Text("Search your favorite content", weight='bold', size=15.5,style=TextStyle(font_family="Montserrat"), color="white", text_align=TextAlign.CENTER, no_wrap=False), Text("BY YEAR", text_align=TextAlign.CENTER, no_wrap=False, size=14.5,style=TextStyle(font_family="Montserrat"), color="white")], spacing= 2,alignment= MainAxisAlignment.CENTER,horizontal_alignment=CrossAxisAlignment.CENTER),
width=10000,
height=(18/100)*page.height,
border_radius=15,
blur=Blur(100, 100, BlurTileMode.MIRROR),
expand=True,
#alignment="center"
),
padding=10,
#alignment="center"
),
Container(
content=Column([
Container(
padding=0,
border_radius=15,
blur=Blur(100, 100, BlurTileMode.MIRROR),
content=TextField(max_length=4,shift_enter=True,cursor_error_color="red",text_size=13.5,text_align=TextAlign.CENTER, cursor_color="blue",enable_interactive_selection=True,border_radius=15,focused_border_width=0,border_width=0,hint_text="Enter year of release here",text_style=TextStyle(font_family="Montserrat")))
],alignment= MainAxisAlignment.CENTER,horizontal_alignment=CrossAxisAlignment.CENTER),
padding=20,
)
]),
border_radius=8,
blur=Blur(10, 10, BlurTileMode.MIRROR),
width=page.width,
height=page.height,
)
])
page.add(cine)
if name == "main":
#import logging
#logging.basicConfig(level=logging.DEBUG)
flet.app(target=main,assets_dir="assets")#(), host="192.168.43.204", port=5662,view=AppView.WEB_BROWSER)#,view=AppView.WEB_BROWSER

To reproduce

Icon being produced in an unexpected way

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Linux

Operating system details

Linux

Flet version

0.25.1

Regression

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

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant