Skip to content

Support arabic number language and keyboard #484

@Lzyct

Description

@Lzyct

Describe the bug
I unable to input number in arabic keyboard

Package version
version: ^0.7.5

Flutter version
v3.35.6

To Reproduce
Steps to reproduce the behavior:

  1. Enable RTL
  2. Change Locale to 'ar'
  3. Use arabic keyboard
  4. Input phone number in arabic number
  5. Can't input the number

Expected behavior
Should be support in Arabic language, if locale change to 'ar' the number should be change to arabic number
for example

Image
 String get toArabicNumbers => replaceAll('0', '٠')
      .replaceAll('1', '١')
      .replaceAll('2', '٢')
      .replaceAll('3', '٣')
      .replaceAll('4', '٤')
      .replaceAll('5', '٥')
      .replaceAll('6', '٦')
      .replaceAll('7', '٧')
      .replaceAll('8', '٨')
      .replaceAll('9', '٩');

Screenshots
If applicable, add screenshots to help explain your problem.

** Targeted platforms (please complete the following information):**

  • OS : Android, iOS
  • Web: ❌

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions