You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/prPreview/669/components_navigation_ouds_navigation_bar_item/OudsNavigationBarItem-class.html
+11-27Lines changed: 11 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -54,33 +54,17 @@ <h1><span class="kind-class">OudsNavigationBarItem</span> class
54
54
55
55
56
56
<sectionclass="desc markdown">
57
-
<p>An OUDS navigation bar item.</p>
58
-
<p>An <ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItem-class.html">OudsNavigationBarItem</a> represents a single destination displayed in an
59
-
OUDS bottom navigation component (e.g. <ahref="../components_navigation_ouds_navigation_bar/OudsNavigationBar-class.html">OudsNavigationBar</a> on Material, or
60
-
<ahref="../components_navigation_ouds_tab_bar/OudsTabBar-class.html">OudsTabBar</a> on iOS).</p>
61
-
<p>Each item consists of an icon, a label, and optionally a badge.
62
-
Visual appearance can vary depending on selection and the resolved
<li><ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItem/icon.html">icon</a>: Asset path of the SVG icon to display.</li>
67
-
<li><ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItem/label.html">label</a>: Text label of the item.</li>
68
-
<li><ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItem/badge.html">badge</a>: Optional <ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItemBadge-class.html">OudsNavigationBarItemBadge</a> displayed over the icon.</li>
<p>A single destination in an OUDS bottom navigation component.</p>
58
+
<p>Used by <ahref="../components_navigation_ouds_navigation_bar/OudsNavigationBar-class.html">OudsNavigationBar</a> (Material/Android) and <ahref="../components_navigation_ouds_tab_bar/OudsTabBar-class.html">OudsTabBar</a> (iOS).
59
+
Each item has an icon, a label, and an optional badge. Visual appearance
60
+
adapts to the <code>OudsNavigationBarControlState</code> (enabled/hovered/pressed/focused).</p>
Copy file name to clipboardExpand all lines: docs/prPreview/669/components_navigation_ouds_navigation_bar_item/OudsNavigationBarItem/toBottomNavigationBarItem.html
<p>This is intended to be used by <ahref="../../components_navigation_ouds_tab_bar/OudsTabBar-class.html">OudsTabBar</a>, which is backed by Cupertino's
70
72
<ahref="https://api.flutter.dev/flutter/cupertino/CupertinoTabBar-class.html">CupertinoTabBar</a> (iOS-style tab bar) and therefore expects a list of
<p>Semantics for VoiceOver are intentionally <strong>not</strong> set here.
75
+
They are managed at the <ahref="../../components_navigation_ouds_tab_bar/OudsTabBar-class.html">OudsTabBar</a> level via a <ahref="https://api.flutter.dev/flutter/widgets/Stack-class.html">Stack</a> overlay of
76
+
transparent <ahref="https://api.flutter.dev/flutter/widgets/Semantics-class.html">Semantics</a> widgets positioned over each tab item, so that
77
+
VoiceOver sees exactly one node per tab announcing:
78
+
"Label<code>, badge</code>, Tab X of Y".</p>
72
79
<ul>
73
80
<li><code>context</code> : BuildContext to access theme and layout.</li>
74
-
<li><code>controlState</code> to drive icon/top-indicator colors,</li>
81
+
<li><code>controlState</code> to drive icon/top-indicator colors.</li>
75
82
<li><code>isSelected</code> for the destination selection state.</li>
83
+
<li><code>index</code> zero-based position of this item in the tab bar.</li>
84
+
<li><code>externalController</code> optional <ahref="https://api.flutter.dev/flutter/animation/AnimationController-class.html">AnimationController</a> managed by the
85
+
parent <ahref="../../components_navigation_ouds_tab_bar/OudsTabBar-class.html">OudsTabBar</a> to survive tab rebuilds on iOS.</li>
Copy file name to clipboardExpand all lines: docs/prPreview/669/components_navigation_ouds_navigation_bar_item/OudsNavigationBarItem/toNavigationDestination.html
Copy file name to clipboardExpand all lines: docs/prPreview/669/components_navigation_ouds_navigation_bar_item/OudsNavigationBarItemBadge-class.html
+4-11Lines changed: 4 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -54,17 +54,10 @@ <h1><span class="kind-class">OudsNavigationBarItemBadge</span> class
54
54
55
55
56
56
<sectionclass="desc markdown">
57
-
<p>Represents an optional badge attached to a navigation item.</p>
58
-
<p>Parameters:</p>
59
-
<ul>
60
-
<li><ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItemBadge/contentDescription.html">contentDescription</a> : Semantic description for accessibility.</li>
61
-
<li><ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItemBadge/count.html">count</a> : Optional integer to display as badge count.</li>
<p>An optional badge attached to a navigation item.</p>
58
+
<p><ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItemBadge/contentDescription.html">contentDescription</a> is the semantic text announced by screen readers.
59
+
<ahref="../components_navigation_ouds_navigation_bar_item/OudsNavigationBarItemBadge/count.html">count</a> is the optional numeric value displayed inside the badge.</p>
0 commit comments