@@ -176,6 +176,7 @@ void sendSemanticsUpdate() {
176176 String tooltip = "tooltip" ;
177177
178178 final Float64List transform = Float64List (16 );
179+ final Float64List hitTestTransform = Float64List (16 );
179180 final Int32List childrenInTraversalOrder = Int32List (0 );
180181 final Int32List childrenInHitTestOrder = Int32List (0 );
181182 final Int32List additionalActions = Int32List (0 );
@@ -198,6 +199,26 @@ void sendSemanticsUpdate() {
198199 transform[13 ] = 0 ;
199200 transform[14 ] = 0 ;
200201 transform[15 ] = 0 ;
202+
203+ hitTestTransform[0 ] = 1 ;
204+ hitTestTransform[1 ] = 0 ;
205+ hitTestTransform[2 ] = 0 ;
206+ hitTestTransform[3 ] = 0 ;
207+
208+ hitTestTransform[4 ] = 0 ;
209+ hitTestTransform[5 ] = 1 ;
210+ hitTestTransform[6 ] = 0 ;
211+ hitTestTransform[7 ] = 0 ;
212+
213+ hitTestTransform[8 ] = 0 ;
214+ hitTestTransform[9 ] = 0 ;
215+ hitTestTransform[10 ] = 1 ;
216+ hitTestTransform[11 ] = 0 ;
217+
218+ hitTestTransform[12 ] = 0 ;
219+ hitTestTransform[13 ] = 0 ;
220+ hitTestTransform[14 ] = 0 ;
221+ hitTestTransform[15 ] = 0 ;
201222 builder.updateNode (
202223 id: 0 ,
203224 flags: SemanticsFlags .none,
@@ -209,6 +230,7 @@ void sendSemanticsUpdate() {
209230 platformViewId: - 1 ,
210231 scrollChildren: 0 ,
211232 scrollIndex: 0 ,
233+ traversalParent: 0 ,
212234 scrollPosition: 0 ,
213235 scrollExtentMax: 0 ,
214236 scrollExtentMin: 0 ,
@@ -227,6 +249,7 @@ void sendSemanticsUpdate() {
227249 tooltip: tooltip,
228250 textDirection: TextDirection .ltr,
229251 transform: transform,
252+ hitTestTransform: hitTestTransform,
230253 childrenInTraversalOrder: childrenInTraversalOrder,
231254 childrenInHitTestOrder: childrenInHitTestOrder,
232255 additionalActions: additionalActions,
@@ -244,13 +267,18 @@ void sendSemanticsUpdateWithRole() {
244267 final SemanticsUpdateBuilder builder = SemanticsUpdateBuilder ();
245268
246269 final Float64List transform = Float64List (16 );
270+ final Float64List hitTestTransform = Float64List (16 );
247271 final Int32List childrenInTraversalOrder = Int32List (0 );
248272 final Int32List childrenInHitTestOrder = Int32List (0 );
249273 final Int32List additionalActions = Int32List (0 );
250274 // Identity matrix 4x4.
251275 transform[0 ] = 1 ;
252276 transform[5 ] = 1 ;
253277 transform[10 ] = 1 ;
278+
279+ hitTestTransform[0 ] = 1 ;
280+ hitTestTransform[5 ] = 1 ;
281+ hitTestTransform[10 ] = 1 ;
254282 builder.updateNode (
255283 id: 0 ,
256284 flags: SemanticsFlags .none,
@@ -262,6 +290,7 @@ void sendSemanticsUpdateWithRole() {
262290 platformViewId: - 1 ,
263291 scrollChildren: 0 ,
264292 scrollIndex: 0 ,
293+ traversalParent: 0 ,
265294 scrollPosition: 0 ,
266295 scrollExtentMax: 0 ,
267296 scrollExtentMin: 0 ,
@@ -280,6 +309,7 @@ void sendSemanticsUpdateWithRole() {
280309 tooltip: "tooltip" ,
281310 textDirection: TextDirection .ltr,
282311 transform: transform,
312+ hitTestTransform: hitTestTransform,
283313 childrenInTraversalOrder: childrenInTraversalOrder,
284314 childrenInHitTestOrder: childrenInHitTestOrder,
285315 additionalActions: additionalActions,
@@ -298,13 +328,18 @@ void sendSemanticsUpdateWithLocale() {
298328 final SemanticsUpdateBuilder builder = SemanticsUpdateBuilder ();
299329
300330 final Float64List transform = Float64List (16 );
331+ final Float64List hitTestTransform = Float64List (16 );
301332 final Int32List childrenInTraversalOrder = Int32List (0 );
302333 final Int32List childrenInHitTestOrder = Int32List (0 );
303334 final Int32List additionalActions = Int32List (0 );
304335 // Identity matrix 4x4.
305336 transform[0 ] = 1 ;
306337 transform[5 ] = 1 ;
307338 transform[10 ] = 1 ;
339+
340+ hitTestTransform[0 ] = 1 ;
341+ hitTestTransform[5 ] = 1 ;
342+ hitTestTransform[10 ] = 1 ;
308343 builder.updateNode (
309344 id: 0 ,
310345 flags: SemanticsFlags .none,
@@ -319,6 +354,7 @@ void sendSemanticsUpdateWithLocale() {
319354 scrollPosition: 0 ,
320355 scrollExtentMax: 0 ,
321356 scrollExtentMin: 0 ,
357+ traversalParent: 0 ,
322358 rect: Rect .fromLTRB (0 , 0 , 10 , 10 ),
323359 identifier: "identifier" ,
324360 label: "label" ,
@@ -334,6 +370,7 @@ void sendSemanticsUpdateWithLocale() {
334370 tooltip: "tooltip" ,
335371 textDirection: TextDirection .ltr,
336372 transform: transform,
373+ hitTestTransform: hitTestTransform,
337374 childrenInTraversalOrder: childrenInTraversalOrder,
338375 childrenInHitTestOrder: childrenInHitTestOrder,
339376 additionalActions: additionalActions,
@@ -370,6 +407,7 @@ void sendSemanticsUpdateWithIsLink() {
370407 platformViewId: - 1 ,
371408 scrollChildren: 0 ,
372409 scrollIndex: 0 ,
410+ traversalParent: 0 ,
373411 scrollPosition: 0 ,
374412 scrollExtentMax: 0 ,
375413 scrollExtentMin: 0 ,
@@ -388,6 +426,7 @@ void sendSemanticsUpdateWithIsLink() {
388426 tooltip: "tooltip" ,
389427 textDirection: TextDirection .ltr,
390428 transform: transform,
429+ hitTestTransform: transform,
391430 childrenInTraversalOrder: childrenInTraversalOrder,
392431 childrenInHitTestOrder: childrenInHitTestOrder,
393432 additionalActions: additionalActions,
0 commit comments