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 AppBar.adaptive #2458

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Add AppBar.adaptive #2458

merged 2 commits into from
Jan 22, 2024

Conversation

ndonkoHenri
Copy link
Collaborator

Test code:

import flet as ft


def main(page: ft.Page):
    page.theme_mode = "light"
    page.window_always_on_top = True

    page.appbar = ft.AppBar(
        title=ft.Text("Flet"),
        actions=[
            ft.IconButton(ft.icons.MENU),
            ft.IconButton(ft.icons.SEARCH),
        ],
        bgcolor=ft.colors.BLUE_ACCENT,
        adaptive=True,
    )

    page.add(
        ft.Text("Hello, Flet!", theme_style=ft.TextThemeStyle.HEADLINE_MEDIUM),
    )


ft.app(target=main)

@FeodorFitsner FeodorFitsner merged commit 7fa9de7 into main Jan 22, 2024
3 checks passed
@ndonkoHenri ndonkoHenri deleted the adaptive-appbar branch January 22, 2024 16:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants