Skip to content

Commit

Permalink
feat(login page): minor fix; add localization PE-4752
Browse files Browse the repository at this point in the history
  • Loading branch information
matibat committed Oct 6, 2023
1 parent a31f8b1 commit e4809eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
19 changes: 16 additions & 3 deletions lib/authentication/login/views/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,22 @@ class _PromptPasswordViewState extends State<PromptPasswordView> {
builder:
(BuildContext context, AsyncSnapshot<String?> snapshot) {
if (snapshot.hasData) {
return TruncatedAddress(
walletAddress: snapshot.data!,
fontSize: 18,
return Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
appLocalizationsOf(context).walletAddress,
style: ArDriveTypography.body
.captionRegular()
.copyWith(fontSize: 18),
),
const SizedBox(width: 8),
TruncatedAddress(
walletAddress: snapshot.data!,
fontSize: 18,
),
],
);
} else {
return const SizedBox.shrink();
Expand Down
6 changes: 5 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,10 @@
"@waitForDownload": {
"description": "User must to wait this download"
},
"walletAddress": "Wallet address:",
"@walletAddress": {
"description": "E.g. \"The wallet address is… ABCDEFGH\""
},
"walletChangedDuringManifestCreation": "Provided wallet has unexpectedly changed during manifest creation...",
"@walletChangedDuringManifestCreation": {
"description": "The wallet has been changed while the creation of the manifest was in process"
Expand Down Expand Up @@ -2078,4 +2082,4 @@
"@zippingYourFiles": {
"description": "Download failure message when a file is too big"
}
}
}

0 comments on commit e4809eb

Please sign in to comment.