2000calories / flutter_easy_rich_text

The EasyRichText widget provides an easy way to use RichText.
https://pub.dev/packages/easy_rich_text
MIT License
79 stars 34 forks source link

iOS can now dial phone numbers at the end of any line. #28

Closed manuel-escola closed 2 years ago

manuel-escola commented 2 years ago

This change enables iOS users to have the phone number automatically dialed when they tap on a telephone number.

Previously, the phone number was recognized, but it was not able to get it automatically dialed.

The regex expression was slightly changed. With the change, only an empty space can be added between blocks of digits. I think it makes more sense now, because a phone number's blocks of digits should not be separated by \n, \t, or multiple empty spaces. This definitely fixes the iOS bug.

The fix was also tested on Android (which was not affected by the bug).

The documentation may need some changes.