From 784c981fff170db41f376b517233f5a7363db9af Mon Sep 17 00:00:00 2001 From: luckyrat Date: Fri, 9 Jul 2021 11:21:48 +0100 Subject: [PATCH] Change expansion icon when item expands/contracts --- lib/src/tree_node.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/tree_node.dart b/lib/src/tree_node.dart index aab0e7a..3c55f59 100644 --- a/lib/src/tree_node.dart +++ b/lib/src/tree_node.dart @@ -134,7 +134,7 @@ class _TreeNodeState extends State> onTap: () => _handleExpand(), child: _TreeNodeExpander( speed: _controller.duration!, - expanded: widget.node.expanded, + expanded: _isExpanded, themeData: _theme.expanderTheme, ), ) diff --git a/pubspec.yaml b/pubspec.yaml index 86e0044..a29edb9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_treeview description: A tree widget for Flutter that can be used to display nested, hierarchical data. It includes a number of features like styling labels, icons, and import and export utilities. -version: 1.0.3+16 +version: 1.1.0 homepage: https://bitbucket.org/kevinandre/flutter_treeview/src/master/ repository: https://bitbucket.org/kevinandre/flutter_treeview/src/master/ issue_tracker: https://bitbucket.org/kevinandre/flutter_treeview/issues