Skip to content

Scrollable NavigationRail #1923

@GianfrancoParionaMendoza

Description

I'm looking for a way to place a scroll in the navigation rail, for destinations.

class NavRailControl(ft.UserControl):
    self.destinations = []
            for lista_info in listas_Title:
                list_title = lista_info  
                self.destinations.append(ft.NavigationRailDestination(
                         icon=ft.icons.TABLE_CHART,
                         selected_icon=ft.icons.PLAYLIST_ADD_CHECK_ROUNDED,
                         label=list_title
                     ))
            destinos = ft.Column(controls=[self.destinations])
            self.top_nav_rail = ft.NavigationRail(
                label_type="all",
                on_change=self.handle_change,
                destinations=destinos,
                bgcolor = "#1b2f48",
                extended=True,
                min_width=100,
                min_extended_width=250,
            )
        def build(self):
            view = ft.Container(self.top_nav_rail)
            return view

My suggestion is to be able to place the destinations in a column. destinos = ft.Column(controls=[self.destinations])

Metadata

Metadata

Assignees

Labels

feature requestSuggestion/Request for additional feature

Type

No type

Projects

Status

👀 In review

Relationships

None yet

Development

No branches or pull requests

Issue actions