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

Add dropdown.Option.text_style property #3293

Merged
merged 1 commit into from
May 24, 2024

Conversation

ndonkoHenri
Copy link
Contributor

Test Code

import flet as ft


def main(page: ft.Page):
    page.add(
        ft.Dropdown(
            width=100,
            options=[
                ft.dropdown.Option(
                    "Red",
                    text_style=ft.TextStyle(color=ft.colors.RED, italic=True),
                    disabled=True,
                ),
                ft.dropdown.Option(
                    "Green", text_style=ft.TextStyle(color=ft.colors.GREEN, italic=True)
                ),
                ft.dropdown.Option("Blue", text_style=ft.TextStyle(color=ft.colors.BLUE)),
            ],
        )
    )


ft.app(target=main)

@ndonkoHenri ndonkoHenri added enhancement Improvement/Optimization controls labels May 15, 2024
@ndonkoHenri ndonkoHenri requested a review from FeodorFitsner May 15, 2024 00:00
@FeodorFitsner FeodorFitsner merged commit 1e8fb3f into main May 24, 2024
3 checks passed
@ndonkoHenri ndonkoHenri deleted the dropdown-option-text-style branch May 24, 2024 15:54
zrr1999 pushed a commit to zrr1999/flet that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls enhancement Improvement/Optimization
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants