flutter_tree_view
flutter_tree_view copied to clipboard
Show widget when a node (without children) is expanded
I think it'd be nice to show an optional widget on node expansion when node's children is empty.
Use case: I need to show a button to add child for the root node when the root node is expanded. I tried a hack of replacing the root node with a custom expandable widget, but this came at the expense of not been able to access the root node's properties.