From 434059af6d7526f015b6293a8c5b26464df932c6 Mon Sep 17 00:00:00 2001 From: ZhuchkaTriplesix Date: Sun, 11 Oct 2026 16:56:07 +0300 Subject: [PATCH] fix(grid): restore ExcludeSemantics in _GridCell to preserve row semantics (#981) --- lib/features/workspace/grid/grid_cell_renderer.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/features/workspace/grid/grid_cell_renderer.dart b/lib/features/workspace/grid/grid_cell_renderer.dart index 2dfb4770..1fc339a0 100644 --- a/lib/features/workspace/grid/grid_cell_renderer.dart +++ b/lib/features/workspace/grid/grid_cell_renderer.dart @@ -135,9 +135,11 @@ class _GridCell extends material.StatelessWidget { : material.Colors.transparent)))); // Primary/secondary gestures and hover tooltips are hoisted to the grid - // level (#983, #1346). _GridCell is now a pure lightweight leaf widget - // without per-cell ContextMenu, Listener, or Tooltip. - return material.Container( + // level (#983, #1346). _GridCell is a lightweight leaf widget. + // ExcludeSemantics prevents redundant per-cell Text semantics nodes, + // preserving the single row semantics label per row (#981). + return material.ExcludeSemantics( + child: material.Container( width: width, height: double.infinity, padding: const material.EdgeInsets.symmetric(horizontal: 10), @@ -185,6 +187,7 @@ class _GridCell extends material.StatelessWidget { ), ], ), + ), ); } }