Skip to content

Commit 9399c63

Browse files
author
mayanksharma9
committed
Clarify Android heading docs for SemanticsProperties.header
1 parent d062cb0 commit 9399c63

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/flutter/lib/src/semantics/semantics.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,10 +1801,10 @@ class SemanticsProperties extends DiagnosticableTree {
18011801
/// application might define headers A, B, C, etc. to divide the list of
18021802
/// alphabetically sorted contacts into sections.
18031803
///
1804-
/// Support for this semantic varies by platform. Android accessibility
1805-
/// exposes headings rather than a separate header concept, so `header` alone
1806-
/// is not sufficient there. To mark content as a heading on Android, also set
1807-
/// [headingLevel].
1804+
/// Support for this semantic varies by platform. On Android, this property
1805+
/// alone is not sufficient. To mark content as a heading for accessibility
1806+
/// services, also set [headingLevel]. This is because Android accessibility
1807+
/// APIs expose headings, but not a separate header concept.
18081808
final bool? header;
18091809

18101810
/// If non-null, indicates that this subtree represents a text field.

0 commit comments

Comments
 (0)