Skip to content

Is there a component for ExpansionTile / ExpansionPanel in Flet? #1717

Answered by FeodorFitsner
ahkdigital asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your interest!

I've just created two issues to implement ExpansionTile (#1719) and ExpansionPanel (#1718) controls.

In the meantime you can use Collapsible control I just hacked in pure Python:

from math import pi
from typing import Optional

import flet as ft

# Collapsible control


class Collapsible(ft.Column):
    def __init__(
        self,
        title: str,
        content: ft.Control,
        icon: Optional[ft.Control] = None,
        spacing: float = 3,
    ):
        super().__init__()
        self.icon = icon
        self.title = title
        self.shevron = ft.Icon(
            ft.icons.KEYBOARD_ARROW_DOWN_ROUNDED,
            animate_rotation=100,
            rotate=

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ahkdigital
Comment options

Answer selected by ahkdigital
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
3 participants