Skip to content

TreeNode lacks tap/press listeners and could use generic children #240

Open
@ghost

Description

Problem description

Feature request for flutter_simple_treeview: A tap/press event.

Many people don't use the package simply as a way to display content; some interaction might be required. Currently as a workaround it's feasible to wrap the TreeNode's content as a GestureDetector or similar, this however will only act when clicking on its own content, not at the node as its entirety, making the UX inconvenient for some kinds of content.

While simply adding an onPress/onTap event to the TreeNode itself could easily fix that, I find that the underlying root issue would not be solved.

I suggest generifying and allowing (almost) any Widget to be occupy the place of a Node. (while turning the padding, calculated padding, or depth of a node, a visible property the developer can use to decide their widget's padding or complement their usecase).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions