Skip to content

Commit

Permalink
A11n: ensure each line is read once: not the label, then the value
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Jul 24, 2023
1 parent 82a01ab commit fd0000d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/smooth_app/lib/pages/product/portion_calculator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,15 @@ class _PortionCalculatorState extends State<PortionCalculator> {
horizontal: VERY_LARGE_SPACE,
vertical: LARGE_SPACE,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(helper.getName(position)),
Text(helper.getValue(position)),
],
child: MergeSemantics(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(helper.getName(position)),
Text(helper.getValue(position)),
],
),
),
),
if (position < helper.length - 1) const Divider(height: 1.0)
Expand Down

0 comments on commit fd0000d

Please sign in to comment.