embraceitmobile / animated_tree_view

Animated TreeView based on AnimatedList allows building fully customizable Nodes that can be nested to infinite levels and children.
https://pub.dev/packages/animated_tree_view
MIT License
59 stars 29 forks source link

Expand on ExpansionIndicator tap instead of on Node tap #42

Closed iam1mPerec closed 6 months ago

iam1mPerec commented 7 months ago

Is there a possibility to make it so that Expansion happens only on ExpansionIndicator tap but uppon tapping a Node to use onItemTap behavior?

iam1mPerec commented 7 months ago

I think I figured it out. I can create a custom node that would pass on a signal to a parent tree when a part of it is clicked. What would be a good way to disable default expand on tap?

prakashr commented 6 months ago

I had my node wrapped in a inkwell with an ontap on it. this will consume the clicks on the node but not on the expansion indicator. i did that to select the node (change the color - to indicate its selected). is this what you are looking for?

iam1mPerec commented 6 months ago

Yes! Thank you! Exactly What I wanted.