From be03c673cd759c58fa5e8a4432051ad5db03136a Mon Sep 17 00:00:00 2001 From: dab246 Date: Sat, 22 Apr 2023 08:27:37 +0700 Subject: [PATCH] TF-1779 Add `adr` for issue `#1779` (cherry picked from commit a91b2e70f51a6a16b57805ae1940050bdc716635) --- ...-of-replacing-dot-in-long-email-address.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/adr/0024-fix-logic-of-replacing-dot-in-long-email-address.md diff --git a/docs/adr/0024-fix-logic-of-replacing-dot-in-long-email-address.md b/docs/adr/0024-fix-logic-of-replacing-dot-in-long-email-address.md new file mode 100644 index 000000000..435b43fef --- /dev/null +++ b/docs/adr/0024-fix-logic-of-replacing-dot-in-long-email-address.md @@ -0,0 +1,20 @@ +# 24. Fix logic of replacing dot in long email address + +Date: 2023-04-21 + +## Status + +- Issue: [#1779](https://github.com/linagora/tmail-flutter/issues/1779) + +## Context + +- Root cause: When we use the `overflow=TextOverflow.ellipsis` property for the `Text` widget for long texts, it will result in incorrect string breaks. Since string contains some characters that are supposed to be word breaks in the string. The characters `space` and `-` + +## Decision + +- Convert those special characters to unicode. +- Flutter is working on fixing that bug and is expected to be updated in version `3.10`. Follow on [flutter#18761](https://github.com/flutter/flutter/issues/18761) + +## Consequences + +- Text overflow with ellipsis worked correctly