From db727eb8a6e1b0a20f50206449e9cded4e0b5a09 Mon Sep 17 00:00:00 2001 From: Restioson Date: Wed, 5 Jun 2024 10:20:31 +0200 Subject: [PATCH 1/2] fix: show the number of seed word correctly --- mobile/lib/common/settings/seed_words.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/common/settings/seed_words.dart b/mobile/lib/common/settings/seed_words.dart index 5c8475259..8983b7cd1 100644 --- a/mobile/lib/common/settings/seed_words.dart +++ b/mobile/lib/common/settings/seed_words.dart @@ -43,7 +43,7 @@ class SeedWord extends StatelessWidget { textBaseline: TextBaseline.alphabetic, children: [ SizedBox( - width: 25.0, + width: 30.0, child: Text( '#$index', style: TextStyle(fontSize: 14, color: Colors.grey[600]), From 2c07c8e61e69db19064c3bdb2f9286895113ac2f Mon Sep 17 00:00:00 2001 From: Restioson Date: Wed, 5 Jun 2024 10:24:23 +0200 Subject: [PATCH 2/2] ui: remove layout shift when showing seed phrase --- mobile/lib/common/settings/seed_words.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/lib/common/settings/seed_words.dart b/mobile/lib/common/settings/seed_words.dart index 8983b7cd1..d1b34a895 100644 --- a/mobile/lib/common/settings/seed_words.dart +++ b/mobile/lib/common/settings/seed_words.dart @@ -39,7 +39,7 @@ class SeedWord extends StatelessWidget { return Container( padding: const EdgeInsets.fromLTRB(0, 5, 0, 5), child: Row( - crossAxisAlignment: visibility ? CrossAxisAlignment.baseline : CrossAxisAlignment.end, + crossAxisAlignment: visibility ? CrossAxisAlignment.center : CrossAxisAlignment.center, textBaseline: TextBaseline.alphabetic, children: [ SizedBox( @@ -53,12 +53,13 @@ class SeedWord extends StatelessWidget { visibility ? SizedBox( width: 100, + height: 30, child: Text( word!, style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold), ), ) - : Container(width: 100, height: 24, color: Colors.grey[300]), + : Container(width: 100, height: 30, color: Colors.grey[300]), ])); } }