Enable multi select mode

Issue #36 new
吕彦 created an issue

currently can only select one node in the tree, it is better to support multi select

/// The key of the select node in the [TreeView].
  final String? selectedKey;

  TreeViewController({
    this.children: const [],
    this.selectedKey,
  });

Comments (2)

  1. Kevin Armstrong

    True but you can easily work around this this wrapping the tree in a stateful widget. You can then use a List<String> to store selected nodes and use nodeBuilder property to build the node with selections based on the keys in your list.

    I’ve done something similar in an app that I am creating. I can provide and example if you like but it will be later.

  2. Log in to comment