Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
Improve the screen reader order on Overview (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
perclasson authored Nov 28, 2019
1 parent d2a83c8 commit 1073070
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gallery/lib/studies/rally/tabs/overview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class _OverviewViewState extends State<OverviewView> {
final alerts = DummyDataService.getAlerts(context);

if (isDisplayDesktop(context)) {
const sortKeyName = 'Overview';
return SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 24),
Expand All @@ -37,14 +38,20 @@ class _OverviewViewState extends State<OverviewView> {
children: [
Flexible(
flex: 7,
child: _OverviewGrid(spacing: 24),
child: Semantics(
sortKey: const OrdinalSortKey(1, name: sortKeyName),
child: _OverviewGrid(spacing: 24),
),
),
SizedBox(width: 24),
Flexible(
flex: 3,
child: Container(
width: 400,
child: _AlertsView(alerts: alerts),
child: Semantics(
sortKey: const OrdinalSortKey(2, name: sortKeyName),
child: _AlertsView(alerts: alerts),
),
),
),
],
Expand Down

0 comments on commit 1073070

Please sign in to comment.