Skip to main content

NavigationDrawerDestination

Displays an icon with a label, for use in NavigationDrawer destinations.

Inherits: Control

Properties

  • bgcolor - The color of this destination.
  • icon - The name of the icon or Control of the destination.
  • label - The text label that appears below the icon of this NavigationDrawerDestination.
  • selected_icon - The name of alternative icon or Control displayed when this destination is selected.

Properties

bgcolorclass-attributeinstance-attribute

bgcolor: Optional[ColorValue] = None

The color of this destination.

iconclass-attributeinstance-attribute

icon: Optional[IconDataOrControl] = None

The name of the icon or Control of the destination.

Example with icon name:

icon=ft.Icons.BOOKMARK

Example with Control:

icon=ft.Icon(ft.Icons.BOOKMARK)

If selected_icon is provided, this will only be displayed when the destination is not selected.

labelclass-attributeinstance-attribute

label: Optional[str] = None

The text label that appears below the icon of this NavigationDrawerDestination.

selected_iconclass-attributeinstance-attribute

selected_icon: Optional[IconDataOrControl] = None

The name of alternative icon or Control displayed when this destination is selected.

Example with icon name:

selected_icon=ft.Icons.BOOKMARK

Example with Control:

selected_icon=ft.Icon(ft.Icons.BOOKMARK)

If this icon is not provided, the NavigationDrawer will display icon in either state.