@@ -28,7 +28,6 @@ import 'dart:ui'
2828 StringAttribute,
2929 TextDirection,
3030 Tristate;
31- import 'dart:ui' as ui show SemanticsHitTestBehavior;
3231
3332import 'package:collection/collection.dart' ;
3433import 'package:flutter/foundation.dart' ;
@@ -1021,7 +1020,6 @@ class SemanticsData with Diagnosticable {
10211020 required this .role,
10221021 required this .controlsNodes,
10231022 required this .validationResult,
1024- required this .hitTestBehavior,
10251023 required this .inputType,
10261024 required this .locale,
10271025 this .tags,
@@ -1290,9 +1288,6 @@ class SemanticsData with Diagnosticable {
12901288 /// {@macro flutter.semantics.SemanticsProperties.validationResult}
12911289 final SemanticsValidationResult validationResult;
12921290
1293- /// {@macro flutter.semantics.SemanticsProperties.hitTestBehavior}
1294- final ui.SemanticsHitTestBehavior hitTestBehavior;
1295-
12961291 /// {@macro flutter.semantics.SemanticsNode.inputType}
12971292 final SemanticsInputType inputType;
12981293
@@ -1420,7 +1415,6 @@ class SemanticsData with Diagnosticable {
14201415 other.role == role &&
14211416 other.validationResult == validationResult &&
14221417 other.inputType == inputType &&
1423- other.hitTestBehavior == hitTestBehavior &&
14241418 _sortedListsEqual (other.customSemanticsActionIds, customSemanticsActionIds) &&
14251419 setEquals <String >(controlsNodes, other.controlsNodes);
14261420 }
@@ -1457,7 +1451,8 @@ class SemanticsData with Diagnosticable {
14571451 validationResult,
14581452 controlsNodes == null ? null : Object .hashAll (controlsNodes! ),
14591453 inputType,
1460- hitTestBehavior,
1454+ traversalParentIdentifier,
1455+ traversalChildIdentifier,
14611456 ),
14621457 );
14631458
@@ -1616,7 +1611,6 @@ class SemanticsProperties extends DiagnosticableTree {
16161611 this .controlsNodes,
16171612 this .inputType,
16181613 this .validationResult = SemanticsValidationResult .none,
1619- this .hitTestBehavior,
16201614 this .onTap,
16211615 this .onLongPress,
16221616 this .onScrollLeft,
@@ -2561,13 +2555,6 @@ class SemanticsProperties extends DiagnosticableTree {
25612555 /// {@endtemplate}
25622556 final SemanticsValidationResult validationResult;
25632557
2564- /// {@template flutter.semantics.SemanticsProperties.hitTestBehavior}
2565- /// Describes how the semantic node should behave during hit testing.
2566- ///
2567- /// See [ui.SemanticsHitTestBehavior] for more details.
2568- /// {@endtemplate}
2569- final ui.SemanticsHitTestBehavior ? hitTestBehavior;
2570-
25712558 /// {@template flutter.semantics.SemanticsProperties.inputType}
25722559 /// The input type for of a editable widget.
25732560 ///
@@ -3248,8 +3235,7 @@ class SemanticsNode with DiagnosticableTreeMixin {
32483235 _headingLevel != config._headingLevel ||
32493236 _linkUrl != config._linkUrl ||
32503237 _role != config.role ||
3251- _validationResult != config.validationResult ||
3252- _hitTestBehavior != config.hitTestBehavior;
3238+ _validationResult != config.validationResult;
32533239 }
32543240
32553241 // TAGS, LABELS, ACTIONS
@@ -3543,10 +3529,6 @@ class SemanticsNode with DiagnosticableTreeMixin {
35433529 SemanticsValidationResult get validationResult => _validationResult;
35443530 SemanticsValidationResult _validationResult = _kEmptyConfig.validationResult;
35453531
3546- /// {@macro flutter.semantics.SemanticsProperties.hitTestBehavior}
3547- ui.SemanticsHitTestBehavior get hitTestBehavior => _hitTestBehavior;
3548- ui.SemanticsHitTestBehavior _hitTestBehavior = ui.SemanticsHitTestBehavior .defer;
3549-
35503532 /// {@template flutter.semantics.SemanticsNode.inputType}
35513533 /// The input type for of a editable node.
35523534 ///
@@ -3627,7 +3609,6 @@ class SemanticsNode with DiagnosticableTreeMixin {
36273609 _role = config._role;
36283610 _controlsNodes = config._controlsNodes;
36293611 _validationResult = config._validationResult;
3630- _hitTestBehavior = config._hitTestBehavior;
36313612 _inputType = config._inputType;
36323613 _locale = config.locale;
36333614
@@ -3682,7 +3663,6 @@ class SemanticsNode with DiagnosticableTreeMixin {
36823663 SemanticsRole role = _role;
36833664 Set <String >? controlsNodes = _controlsNodes;
36843665 SemanticsValidationResult validationResult = _validationResult;
3685- ui.SemanticsHitTestBehavior hitTestBehavior = _hitTestBehavior;
36863666 SemanticsInputType inputType = _inputType;
36873667 final Locale ? locale = _locale;
36883668 final Set <int > customSemanticsActionIds = < int > {};
@@ -3747,9 +3727,6 @@ class SemanticsNode with DiagnosticableTreeMixin {
37473727 if (inputType == SemanticsInputType .none) {
37483728 inputType = node._inputType;
37493729 }
3750- if (hitTestBehavior == ui.SemanticsHitTestBehavior .defer) {
3751- hitTestBehavior = node._hitTestBehavior;
3752- }
37533730 if (tooltip == '' ) {
37543731 tooltip = node._tooltip;
37553732 }
@@ -3841,7 +3818,6 @@ class SemanticsNode with DiagnosticableTreeMixin {
38413818 role: role,
38423819 controlsNodes: controlsNodes,
38433820 validationResult: validationResult,
3844- hitTestBehavior: hitTestBehavior,
38453821 inputType: inputType,
38463822 locale: locale,
38473823 );
@@ -4013,7 +3989,6 @@ class SemanticsNode with DiagnosticableTreeMixin {
40133989 role: data.role,
40143990 controlsNodes: data.controlsNodes? .toList (),
40153991 validationResult: data.validationResult,
4016- hitTestBehavior: data.hitTestBehavior,
40173992 inputType: data.inputType,
40183993 locale: data.locale,
40193994 );
@@ -6440,14 +6415,6 @@ class SemanticsConfiguration {
64406415 _hasBeenAnnotated = true ;
64416416 }
64426417
6443- /// {@macro flutter.semantics.SemanticsProperties.hitTestBehavior}
6444- ui.SemanticsHitTestBehavior get hitTestBehavior => _hitTestBehavior;
6445- ui.SemanticsHitTestBehavior _hitTestBehavior = ui.SemanticsHitTestBehavior .defer;
6446- set hitTestBehavior (ui.SemanticsHitTestBehavior value) {
6447- _hitTestBehavior = value;
6448- _hasBeenAnnotated = true ;
6449- }
6450-
64516418 /// {@macro flutter.semantics.SemanticsProperties.inputType}
64526419 SemanticsInputType get inputType => _inputType;
64536420 SemanticsInputType _inputType = SemanticsInputType .none;
@@ -6556,10 +6523,6 @@ class SemanticsConfiguration {
65566523 if (_hasExplicitRole && other._hasExplicitRole) {
65576524 return false ;
65586525 }
6559- if (_hitTestBehavior != ui.SemanticsHitTestBehavior .defer ||
6560- other._hitTestBehavior != ui.SemanticsHitTestBehavior .defer) {
6561- return false ;
6562- }
65636526 return true ;
65646527 }
65656528
@@ -6670,11 +6633,6 @@ class SemanticsConfiguration {
66706633 child._accessiblityFocusBlockType,
66716634 );
66726635
6673- if (_hitTestBehavior == ui.SemanticsHitTestBehavior .defer &&
6674- child._hitTestBehavior != ui.SemanticsHitTestBehavior .defer) {
6675- _hitTestBehavior = child._hitTestBehavior;
6676- }
6677-
66786636 _hasBeenAnnotated = hasBeenAnnotated || child.hasBeenAnnotated;
66796637 }
66806638
@@ -6720,8 +6678,7 @@ class SemanticsConfiguration {
67206678 .._role = _role
67216679 .._controlsNodes = _controlsNodes
67226680 .._validationResult = _validationResult
6723- .._inputType = _inputType
6724- .._hitTestBehavior = _hitTestBehavior;
6681+ .._inputType = _inputType;
67256682 }
67266683}
67276684
0 commit comments