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

the border radius and the centering of the cupertino bottom sheet is not working in flet v0.26 #4761

Open
1 task done
begeansma019 opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels
bug Something isn't working controls

Comments

@begeansma019
Copy link

Duplicate Check

Describe the bug

In flet 0.25.2 the border radius and the centering of the Cupertino bottom sheet works :

Image

but in the latest dev version flet==0.26.0.dev4041 the border radius can not be seen and the bottom sheet is being centered is not see that well because of the page being displayed under it :

Image

Code sample

Code
import flet as ft


def main(page):
    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
    text= ft.Text(
                "Welcome to our application! We aim to provide the best services and solutions "
                "to meet your needs. Our team is dedicated to ensuring customer satisfaction and "
                "delivering exceptional results. Here's what we offer:\n\n"
                "- High-quality products\n"
                "- Reliable customer support\n"
                "- Continuous innovation\n"
                "- A commitment to excellence\n\n"
                "Thank you for choosing us. We look forward to serving you!",
                size=16,
                text_align=ft.TextAlign.JUSTIFY,
                font_family="Quicksand",  # Ensure font is specified
            ),

    text_fields_container = ft.Container(
        content=ft.Column(
            text,


            spacing=10,
            alignment=ft.MainAxisAlignment.CENTER,  # Center all elements vertically
            horizontal_alignment=ft.CrossAxisAlignment.CENTER,  # Center all elements horizontally
        ),
        border_radius=20,
        padding=30,

        bgcolor=ft.colors.WHITE,
    )

    bottom_sheet = ft.CupertinoBottomSheet(
        content=ft.Container(
            content=text_fields_container,
            padding=ft.Padding(0, 0, 0, 250),  # Add padding around the action sheet content
            width=500,  # Keep the desired width
            height=650
            ,
        ),
    )
    page.add(bottom_sheet)
    bottom_sheet.open = True
    page.update()

ft.app(main)



### To reproduce

Just run the code on a python IDE 

### Expected behavior

In the latest flet release  flet==0.26.0.dev4041 the border radius is not really seen and the centering of the bottom sheet can not be seen because of the page being displayed below it 



### Screenshots / Videos

<details open>
<summary>Captures</summary>

![Image](https://github.com/user-attachments/assets/9923c452-aef3-466c-86f1-66cb20d0cc1d)

</details>


### Operating System

Windows

### Operating system details

Version 23H2 OS Build 22631.4751

### Flet version

pip install flet==0.26.0.dev4041

### Regression

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

### Suggestions

_No response_

### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]

Additional details

No response

@ndonkoHenri ndonkoHenri self-assigned this Jan 25, 2025
@ndonkoHenri ndonkoHenri added bug Something isn't working controls labels Jan 25, 2025
@ndonkoHenri ndonkoHenri changed the title the border radius and the centering of the cupertino bottom sheet is not working in flet==0.26.0.dev4041 the border radius and the centering of the cupertino bottom sheet is not working in flet v0.26 Jan 27, 2025
@begeansma019
Copy link
Author

Does any one know to change the logo on a dynamic flet app and how to change the splash screen ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working controls
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants