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

Height property in DropDown does not work #4266

Open
1 task done
ClearSafety opened this issue Oct 30, 2024 · 1 comment
Open
1 task done

Height property in DropDown does not work #4266

ClearSafety opened this issue Oct 30, 2024 · 1 comment

Comments

@ClearSafety
Copy link

Duplicate Check

Describe the bug

DropDown control has the property 'height' that was supposed to increase or decrease the size of the field.
However, it works only if you decrease its size.
The maximum you can set to this property is 50. Greater than this, it only increases the size of its shadow.

The field size only increase its size if you increase the size of the text.

Code sample

Code
DropDown control has the property 'height' that was supposed to increase or decrease the size of the field.
However, it works only if you decrease its size. 
The maximum you can set to this property is 50. Greater than this, it has no effect.

The field size only increase its size if you increase the size of the text.```

</details>


### To reproduce

1. Run the repro code.

### Expected behavior

_No response_

### Screenshots / Videos

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

[Upload media here]

</details>
![dropdown](https://github.com/user-attachments/assets/272d292a-bbd9-4a31-9fc3-4116b39fbb88)


### Operating System

Windows

### Operating system details

Windows 11 Pro

### Flet version

0.25.0.dev3614

### Regression

No, it isn't

### Suggestions

_No response_

### Logs

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

```console
[Paste your logs here]

Additional details

No response

@ndonkoHenri
Copy link
Collaborator

I haven't found a way to increase the height of the dropdown in flutter. An SO thread suggested this approach:

import flet as ft


def main(page: ft.Page):
    page.theme_mode = ft.ThemeMode.LIGHT
    page.add(
        ft.Container(
            border=ft.border.all(color=ft.colors.BLUE),
            border_radius=5,
            content=ft.Dropdown(
                value="Red",
                width=100,
                height=100,
                border=ft.InputBorder.NONE,
                options=[
                    ft.dropdown.Option("Red"),
                    ft.dropdown.Option("Green"),
                    ft.dropdown.Option("Blue"),
                ],
            ),
        ),
    )


ft.app(main)

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

2 participants