Skip to content

Commit

Permalink
chore: 💄 Update labels and adapt UI
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Oct 23, 2024
1 parent fece882 commit 736bbe3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@
"processingInProgress": "Processing in progress...",
"restoreFailedTitle": "Archethic Wallet",
"restoreFailedSubtitle": "Failed to open your wallet.",
"restoreFailedInfo1": "Don't panic! Your data is still there, safe and secure.",
"restoreFailedInfo1": "Don't panic! Your data is still on the Archethic Blockchain, safe and secure.",
"restoreFailedInfo2": "This could be due to a network issue.\nYou can try again by clicking the button below, or restart the app manually.",
"logsDialogTitle": "Logs",
"logsDesc": "If you encounter any problems, you can copy and send the information below to the Archethic support team.\nEnsure that no sensitive or private information that could affect the security of your funds is shared.",
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@
"processingInProgress": "Traitement en cours d'exécution...",
"restoreFailedTitle": "Archethic Wallet",
"restoreFailedSubtitle": "Échec lors de l’ouverture de votre wallet.",
"restoreFailedInfo1": "Pas de panique ! Vos données sont toujours , en sécurité.",
"restoreFailedInfo1": "Pas de panique ! Vos données sont toujours sur la blockchain Archethic, en sécurité.",
"restoreFailedInfo2": "Cela peut être dû à un problème réseau.\nVous pouvez réessayer en cliquant sur le bouton ci-dessous, ou relancer l'application manuellement.",
"logsDialogTitle": "Journal",
"logsDesc": "Si vous rencontrez des problèmes, vous pouvez copier et envoyer les informations ci-dessous à l'équipe support d'Archethic.\nVeillez à ce qu'aucune information sensible ou privée qui pourrait affecter la sécurité de vos fonds ne soit partagée.",
Expand Down
30 changes: 16 additions & 14 deletions lib/ui/widgets/dialogs/logs_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// SPDX-License-Identifier: AGPL-3.0-or-later
import 'package:aewallet/modules/aeswap/ui/views/util/app_styles.dart';
import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart'
as aedappfm;
import 'package:flutter/material.dart';
Expand All @@ -10,7 +11,7 @@ class LogsDialog {
static Future<void> getDialog(
BuildContext context,
WidgetRef ref,
String? logs,
String logs,
) async {
return showDialog<void>(
context: context,
Expand All @@ -19,33 +20,34 @@ class LogsDialog {
popupTitle: AppLocalizations.of(context)!.logsDialogTitle,
popupHeight: 500,
popupContent: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SelectableText(
AppLocalizations.of(context)!.logsDesc,
style: Theme.of(context).textTheme.bodyMedium,
style: AppTextStyles.bodyMediumSecondaryColor(context),
),
const SizedBox(
height: 20,
),
SelectableText(
'${AppLocalizations.of(context)!.logsDialogTitle}:',
style: AppTextStyles.bodyMediumSecondaryColor(context),
),
Expanded(
child: Container(
width: aedappfm.AppThemeBase.sizeBoxComponentWidth,
color: Colors.transparent,
padding: const EdgeInsets.all(30),
padding: const EdgeInsets.only(
bottom: 20,
),
child: aedappfm.ArchethicScrollbar(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
SelectableText(
logs!,
style: Theme.of(context)
.textTheme
.bodySmall!
.copyWith(
fontSize:
aedappfm.Responsive.fontSizeFromTextStyle(
context,
Theme.of(context).textTheme.bodyMedium!,
),
),
logs,
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(
height: 20,
Expand Down

0 comments on commit 736bbe3

Please sign in to comment.