Skip to content

v1: issues with NavigationDrawer #5386

Open
@ndonkoHenri

Description

@ndonkoHenri
  • The following error is shown when closing the drawer

    Image

    def main(page: ft.Page):
    
        def handle_dismissal(e):
            print("End drawer dismissed")
    
        def handle_change(e):
            print(f"Selected Index changed: {e.control.selected_index}")
            page.pop_dialog()
    
        end_drawer = ft.NavigationDrawer(
            position=ft.NavigationDrawerPosition.END,
            on_dismiss=handle_dismissal,
            on_change=handle_change,
            controls=[
                ft.NavigationDrawerDestination(
                    icon=ft.Icons.ADD_TO_HOME_SCREEN_SHARP, label="Item 1"
                ),
                ft.NavigationDrawerDestination(
                    icon=ft.Icon(ft.Icons.ADD_COMMENT), label="Item 2"
                ),
            ],
        )
    
        page.add(
            ft.ElevatedButton(
                "Show end drawer", on_click=lambda e: page.show_dialog(end_drawer)
            )
        )
  • The top menu icon button from this example is not shown.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions