Skip to content

Missing Features and Questions About ft.Dropdown and ft.Switch #5001

Answered by InesaFitsner
Klu1d asked this question in Q&A
Discussion options

You must be logged in to vote

I can answer a few of your questions:

  1. Currently, there is no menu_width property. We will add this property for next Flet update and you'll be able to set menu width.
  2. You can set transparent color to any icon, like this:
    # How can I completely remove `trailing_icon`? Setting `trailing_icon = None` does not work.
    q2 = ft.Dropdown(
        hint_text="Content",
        trailing_icon=ft.Icon(ft.Icons.ABC, color=ft.Colors.TRANSPARENT),
        selected_trailing_icon=ft.Icon(ft.Icons.ABC, color=ft.Colors.TRANSPARENT),
        menu_height=500,
        options=[
            ft.DropdownOption(
                "dropdown option",
                content=ft.Switch(label="switch", label_posi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Klu1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants