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

Setting SearchBar.bar_border_side isn't visually honoured #4767

Open
ndonkoHenri opened this issue Jan 25, 2025 · 0 comments · May be fixed by #4768
Open

Setting SearchBar.bar_border_side isn't visually honoured #4767

ndonkoHenri opened this issue Jan 25, 2025 · 0 comments · May be fixed by #4768
Assignees
Labels
bug Something isn't working controls

Comments

@ndonkoHenri
Copy link
Contributor

Hi,
I'm trying to set 'bar_border_side', but it has no effect in the SearchBar.
I tried your own example, but nor border is displayed

import flet as ft


def main(page: ft.Page):
    page.window.always_on_top = True
    page.theme_mode = ft.ThemeMode.LIGHT
    page.add(
        ft.SearchBar(
            controls=[ft.ListTile(title=ft.Text("Hello"))],
            view_header_height=30,
            on_tap=lambda e: e.control.open_view(),
            width=350,
            view_size_constraints=ft.BoxConstraints(max_height=170, max_width=350),
            bar_hint_text="Search",
            bar_padding=ft.padding.symmetric(10, 10),
            bar_border_side=ft.BorderSide(color=ft.Colors.BLUE, width=2),
            view_side=ft.BorderSide(color=ft.colors.RED, width=2),
        )
    )


ft.app(main)

Originally posted by @ClearSafety in #4039 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working controls
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

1 participant