Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: Repetitive dropdown functions (Dropdown and DropdownM2), as well as invalid documents (such as dense invalidation)

オープン
#6,554 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ndonkoHenri がすでに取り組んでいます。

2026年8月27日 から。

評価

この issue はまだ評価されていません。

説明

bug
Duplicate Check
Describe the bug

In the official document, ft.Dropdown dense attribute invalid. And the height and menu_height are not displayed according to the preset values.DropdownM2 doesn't know if it's going to be deprecated.(https://flet.dev/docs/controls/dropdownm2/ Page Not Found)

Code sample
Code
import flet as ft


def main(page: ft.Page):
    page.add(
        ft.Column(
            controls=[
                ft.Row(
                    controls=[
                        ft.Dropdown(),
                        ft.Dropdown(dense=True),
                        ft.Dropdown(dense=False),
                        ft.Dropdown(),
                    ]
                ),
                ft.Row(
                    controls=[
                        ft.Dropdown(height=24),
                        ft.Dropdown(height=36),
                        ft.Dropdown(height=48),
                        ft.Dropdown(height=96),
                    ]
                ),
                ft.Row(
                    controls=[
                        ft.Dropdown(
                            menu_height=24,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=36,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=48,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=96,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                        ft.Dropdown(
                            menu_height=200,
                            options=[
                                ft.DropdownOption("a", "Style 2A"),
                                ft.DropdownOption("b", "Style 2B"),
                                ft.DropdownOption("c", "Style 2C"),
                            ],
                        ),
                    ]
                ),
            ]
        )
    )


if __name__ == '__main__':
    ft.run(main)

To reproduce

Run the repro code.

Expected behavior

No response

Screenshots / Videos
Captures

[Upload media here]

Operating System

Windows

Operating system details

11

Flet version

0.85.2

Regression

I'm not sure / I don't know

Suggestions

Repair functionality or update documentation, or make better choices for Dropdown.

Logs
Logs
[Paste your logs here]
Additional details

No response

主要言語
Python
スター
17.4k
フォーク
728
平均マージ
1日 7時間
マージ済み PR(30日)
51

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

flet-dev/flet のほかの issue

flet-dev/flet の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。