flutter_custom_tree_view 1.9.0 copy "flutter_custom_tree_view: ^1.9.0" to clipboard
flutter_custom_tree_view: ^1.9.0 copied to clipboard

A flutter_custom_tree_view package.

1.0.0 #

  • TODO: initial.

1.9.0 - 2026-02-17 #

Breaking Changes #

  • onLastItemClick callback signature changed from Function(List<String> recordParentKey, TreeNode node) to Function(List<TreeNode> roadmap, TreeNode node)
  • The first parameter now provides a complete roadmap (list of TreeNode objects) from root to the clicked node, instead of just string keys
  • This allows access to full node information (title, value, customUi, etc.) in the path, not just keys

Migration Guide #

Before:

onLastItemClick: (parentKeys, node) {
  print('Path: ${parentKeys.join(' > ')}');
}

After:

onLastItemClick: (roadmap, node) {
  String path = roadmap.map((n) => n.title).join(' > ');
  print('Path: $path');
  // Now you can also access other node properties in the path
}

1.8.0 - 2025-04-30 #

Added #

  • TreeViewController for programmatic control of node expansion/collapse
  • divider parameter to add custom dividers between nodes
  • showRootTitle toggle to show/hide root node title
  • isLastChild tracking for improved divider placement
  • Automatic node collapse during search operations
  • Controller disposal in widget lifecycle
  • Expanded documentation with new examples

Changed #

  • Improved node rendering performance
  • Refactored internal build methods for better maintainability
  • Updated example app to demonstrate new features
  • Search now collapses all nodes before filtering
2
likes
140
points
130
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter_custom_tree_view package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_custom_tree_view