CW-703: Better Seed UI/UX - Fix for Japanese PolySeeds (#1875)

* feat: Switch UI for seeds display

* feat: Add localization for disclaimer text

* fix: Modify color for warning on seeds screen

* Fix: Adjust UI styling for seed page

* chore: Revert podfile.lock

* Fix column colors

* Fix more colors

* Fix more colors and update strings

* fix: Error extracting seed words in Japanese because of spacing type used

---------

Co-authored-by: tuxpizza <tuxsudo@tux.pizza>
This commit is contained in:
David Adegoke
2024-12-13 21:44:39 +02:00
committed by GitHub
co-authored by tuxpizza
parent 489a409bea
commit e21cf7113d
2 changed files with 21 additions and 14 deletions
+4 -1
View File
@@ -16,7 +16,10 @@ abstract class WalletSeedViewModelBase with Store {
@observable
String seed;
List<String> get seedSplit => seed.split(' ');
/// The Regex split the words based on any whitespace character.
///
/// Either standard ASCII space (U+0020) or the full-width space character (U+3000) used by the Japanese.
List<String> get seedSplit => seed.split(RegExp(r'\s+'));
int get columnCount => seedSplit.length <= 16 ? 2 : 3;
}