@@ -55,39 +55,42 @@ class _AstNodeTreeViewState extends State<AstNodeTreeView> {
5555 final theme = Theme .of (context);
5656
5757 return AppDecoratedBox (
58- child: AnimatedTreeView <TreeNode <AstNode >>(
59- treeController: _treeController,
60- padding: const EdgeInsets .all (8.0 ),
61- nodeBuilder: (context, entry) {
62- final astNode = entry.node.value;
63- return Ink (
64- decoration: BoxDecoration (
65- color: widget.selected == astNode ? theme.colorScheme.primaryContainer : null ,
66- borderRadius: const BorderRadius .all (Radius .circular (4.0 )),
67- ),
68- child: InkWell (
69- borderRadius: const BorderRadius .all (Radius .circular (4.0 )),
70- onTap: () {
71- widget.onNodeChanged (astNode);
72- },
73- child: TreeIndentation (
74- entry: entry,
75- guide: IndentGuide .connectingLines (
76- connectBranches: false ,
77- indent: 24 ,
78- color: theme.dividerColor,
79- ),
80- child: Padding (
81- padding: const EdgeInsets .symmetric (horizontal: 4.0 ),
82- child: Text (
83- getAstNodeTypeName (astNode),
84- overflow: TextOverflow .ellipsis,
58+ child: Material (
59+ type: MaterialType .transparency,
60+ child: AnimatedTreeView <TreeNode <AstNode >>(
61+ treeController: _treeController,
62+ padding: const EdgeInsets .all (8.0 ),
63+ nodeBuilder: (context, entry) {
64+ final astNode = entry.node.value;
65+ return Ink (
66+ decoration: BoxDecoration (
67+ color: widget.selected == astNode ? theme.colorScheme.primaryContainer : null ,
68+ borderRadius: const BorderRadius .all (Radius .circular (4.0 )),
69+ ),
70+ child: InkWell (
71+ borderRadius: const BorderRadius .all (Radius .circular (4.0 )),
72+ onTap: () {
73+ widget.onNodeChanged (astNode);
74+ },
75+ child: TreeIndentation (
76+ entry: entry,
77+ guide: IndentGuide .connectingLines (
78+ connectBranches: false ,
79+ indent: 24 ,
80+ color: theme.dividerColor,
81+ ),
82+ child: Padding (
83+ padding: const EdgeInsets .symmetric (horizontal: 4.0 ),
84+ child: Text (
85+ getAstNodeTypeName (astNode),
86+ overflow: TextOverflow .ellipsis,
87+ ),
8588 ),
8689 ),
8790 ),
88- ),
89- );
90- } ,
91+ );
92+ },
93+ ) ,
9194 ),
9295 );
9396 }
0 commit comments