How to control onHover colour for nodes?

Issue #44 resolved
Ali Sabet created an issue

I’ve tried setting every theme color that might effect onHover colour (ie colorScheme, iconTheme, etc), but to no avail. Which parameters specifically control selection/hover colour?

Comments (4)

  1. Ali Sabet reporter

    It seems there is a hardcoded override for the hoverColor theme for some reason?

    @override
      Widget build(BuildContext context) {
        ThemeData _parentTheme = Theme.of(context);
        return Theme(
          data: _parentTheme.copyWith(hoverColor: Colors.grey.shade100),
          child: ListView(
            shrinkWrap: shrinkWrap!,
            primary: primary,
            physics: physics,
            padding: EdgeInsets.zero,
            children: _controller.children.map((Node node) {
              return TreeNode(node: node);
            }).toList(),
          ),
        );
      }
    

    Why is that the case?

  2. Log in to comment