How to force English digits (0-9) in input fields regardless of keyboard language?

Custom Code

I'm developing a FlutterFlow app that supports both English and Arabic languages.

The issue I'm facing is when the input language is set to Arabic and a user types in a number, the digits appear in Arabic format (e.g., ٠١٢٣٤٥٦٧٨٩) instead of standard English digits (0123456789). This causes calculation and parsing issues in my app.

I want to ensure that only English digits (0-9) are used throughout the app, even when the keyboard is in Arabic.
How can I enforce this behavior in FlutterFlow or with custom Flutter code?

What have you tried so far?

I tried setting Intl.defaultLocale = 'en_US'; in main.dart before app initialization, but it didn’t fix the issue. The Arabic digits still appear when typing in number fields with an Arabic keyboard.

Did you check FlutterFlow's Documentation for this topic?
Yes
3