Skip to content

Commit 73da229

Browse files
author
MritunjayTiwari14
committed
semantic: Add namedRoutes for bottomnavbar on home
1 parent bff4994 commit 73da229

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/widgets/home.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ class _HomePageState extends State<HomePage> {
132132
body: Stack(
133133
children: [
134134
for (final (tab, body) in pageBodies)
135-
// TODO(#535): Decide if we find it helpful to use something like
136-
// [SemanticsProperties.namesRoute] to structure this UI better
137-
// for screen-reader software.
138-
Offstage(offstage: tab != _tab.value, child: body),
135+
Offstage(
136+
offstage: tab != _tab.value,
137+
child: Semantics(
138+
namesRoute: true,
139+
child: body))
139140
]),
140141
bottomNavigationBar: DecoratedBox(
141142
decoration: BoxDecoration(

0 commit comments

Comments
 (0)