Skip to content
Articles
Article

Flutter RTL: a Row of digits shows 175 as 571

by Mohamed Gado dev.to

3 min read

A tester using Hadeed, my gym log, in Arabic reported that length and weight were reversed. A height of 175 showed as 571, and an age of 28 showed as 82. The stored values were right. The animated number was a Row with one widget per digit, and a Row lays its children out in the ambient text direction. The fix is one line on that row: Row( textDirection: TextDirection.ltr, children: [ for (final …

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by