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

Bottom Sheet error in windows? #1344

Closed
YEUNU opened this issue Apr 27, 2023 · 1 comment
Closed

Bottom Sheet error in windows? #1344

YEUNU opened this issue Apr 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@YEUNU
Copy link

YEUNU commented Apr 27, 2023

I am practice flet examples, but bottom sheet doesn't work in my enviroment

Code example to reproduce the issue:

import flet as ft


def main(page: ft.Page):
    def bs_dismissed(e):
        print("Dismissed!")

    def show_bs(e):
        bs.open = True
        bs.update()

    def close_bs(e):
        bs.open = False
        bs.update()

    bs = ft.BottomSheet(
        ft.Container(
            ft.Column(
                [
                    ft.Text("This is sheet's content!"),
                    ft.ElevatedButton("Close bottom sheet", on_click=close_bs),
                ],
                tight=True,
            ),
            padding=10,
        ),
        open=True,
        on_dismiss=bs_dismissed,
    )
    page.overlay.append(bs)
    page.add(ft.ElevatedButton("Display bottom sheet", on_click=show_bs))


ft.app(target=main)

Flet version (pip show flet):

Name: flet
Version: 0.6.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: c:\users\grint\anaconda3\envs\tf\lib\site-packages
Requires: flet-core, httpx, oauthlib, packaging, watchdog, websocket-client, websockets
Required-by:

Operating system:

Additional environment details:

@FeodorFitsner FeodorFitsner added the bug Something isn't working label Apr 27, 2023
@FeodorFitsner
Copy link
Contributor

Just released Flet 0.6.1 with the fix.

zrr1999 pushed a commit to zrr1999/flet that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants