sooxie / list_treeview

A treeview for Flutter. Based on the listview.
MIT License
64 stars 23 forks source link

Added a way to disable implicit node toggling #1

Closed baumths closed 4 years ago

baumths commented 4 years ago

I have added the toggleNodeOnTap property to the ListTreeView class to make it possible to toggle the node from a button press instead of clicking the node itself. I need this feature because in my application, clicking a node will trigger the Navigator to switch pages. To expand or collapse nodes I'm using an IconButton that calls TreeViewController.expandOrCollapse from the node widget (ListTile in my case).

sooxie commented 4 years ago

I'm sorry to have just seen your message. You have a good idea. You can change this to suit your needs. This project is not perfect for the time being. I will gradually improve its function. Thank you for your submission. I wish you good luck