searchable_tree 0.0.2
searchable_tree: ^0.0.2 copied to clipboard
A highly customizable Flutter tree view widget with built-in search support, expand/collapse functionality, and beautiful UI.
0.0.2 #
New Features #
- ✨ Added
idfield to TreeNode for unique node identification - ✨ Node selection functionality with visual highlighting
- ✨ Added
selectedColorproperty for customizing selection highlight - ✨ Added
allowNodeSelectionproperty to enable/disable node selection - ✨ Added
onNodeSelectedcallback when a node is selected - ✨ Added
onAddButtonTapcallback for adding new nodes - ✨ Added
onNodeShowMenucallback with position for node context menu - ✨ Added
initialSelectedNodeIdproperty to set initial selected node - ✨ Auto-scroll to selected node functionality
- ✨ Auto-expand ancestors when selecting a node
- ✨ Preserves expanded state during search operations
- ✨ SearchBar replaces TextField for better Material 3 styling
- ✨ Added add button in search field
Breaking Changes #
- ⚠️
TreeNodenow requires anidfield
0.0.1 #
Initial Release #
- 🎉 First version of searchable_tree
- ✨ Built-in search functionality with match highlighting
- ✨ Expand/collapse icons placed on the right side
- ✨ Indentation guide lines for clear hierarchy visualization
- ✨ Text auto-wrap support for long node titles
- ✨ Separate click events: tap text triggers node action, tap icon toggles expand
- ✨
showSearchFieldparameter to enable/disable search functionality - ✨ Highly customizable appearance (colors, styles, indentation, etc.)
- ✨ Node tap and expand/collapse callbacks
- ✨ Full widget testing suite included
- ✨ Complete example project with search toggle demonstration