This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,9 @@ class SemanticsAction {
285
285
//
286
286
// When changes are made to this class, the equivalent APIs in
287
287
// `lib/ui/semantics/semantics_node.h` and in each of the embedders *must* be
288
- // updated.
288
+ // updated. If the change affects the visibility of a [SemanticsNode] to
289
+ // accessibility services, `flutter_test/controller.dart#SemanticsController._importantFlags`
290
+ // must be updated as well.
289
291
class SemanticsFlag {
290
292
const SemanticsFlag ._(this .index) : assert (index != null );
291
293
@@ -324,7 +326,10 @@ class SemanticsFlag {
324
326
// value in testing/dart/semantics_test.dart, or tests will fail. Also,
325
327
// please update the Flag enum in
326
328
// flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java,
327
- // and the SemanticsFlag class in lib/web_ui/lib/semantics.dart.
329
+ // and the SemanticsFlag class in lib/web_ui/lib/semantics.dart. If the new flag
330
+ // affects the visibility of a [SemanticsNode] to accessibility services,
331
+ // `flutter_test/controller.dart#SemanticsController._importantFlags`
332
+ // must be updated as well.
328
333
329
334
/// The semantics node has the quality of either being "checked" or "unchecked".
330
335
///
You can’t perform that action at this time.
0 commit comments