If you are a new beginner in flutter and get intimidated by error similar to this.
Don't worry. You are not alone.
The solution to this is add textDirection: TextDirection.ltr
And it will work.
See below.
void main() {
runApp(
Container(
color: Colors.blue,
child: const Text(
"Nimish",
textDirection: TextDirection.ltr,
textAlign: TextAlign.center,
),
),
);
}