What changed, and why it matters
This commit is a routine user-interface polish change. It adds a top navigation bar (AppBar) to the 'Receive' and 'Send' screens and moves the screen title from the body into that bar. There is no security-relevant change in the code.
No security action needed. This is a normal UI/UX improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds AppBar(title: Text(i18n.receiveTitle)) to lib/screens/receive.dart and AppBar(title: Text(i18n.sendTitle)) to lib/screens/send.dart. It introduces the receiveTitle localization string in English and Portuguese and comments out the previous inline sendTitle heading in the screen body. No logic, cryptography, networking, permissions, or data-handling code is modified.
Changed components
lib/screens/receive.dartlib/screens/send.dartlib/l10n/app_en.arblib/l10n/app_pt.arblib/l10n/app_localizations.dartlib/l10n/app_localizations_en.dartlib/l10n/app_localizations_pt.dartInspect captured patch +20 / −5
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index a735e99..60345b8 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -59,6 +59,7 @@
"homeIncomingTxSemanticLabel": "Incoming Transaction",
"homeTransactionConfirmed": "Confirmed",
"homeNoTransactions": "No transactions",
+ "receiveTitle": "Receive",
"receivePrimaryAddressWarn": "Warning: For better privacy, consider using subaddresses if supported by your light wallet server.",
"receiveSubaddressWarn": "Warning: Make sure your light wallet server supports subaddresses, otherwise, you will not be able to see incoming transactions.",
"receiveShareButton": "Share",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index a7d1eb8..24b0cd1 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -452,6 +452,12 @@ abstract class AppLocalizations {
/// **'No transactions'**
String get homeNoTransactions;
+ /// No description provided for @receiveTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Receive'**
+ String get receiveTitle;
+
/// No description provided for @receivePrimaryAddressWarn.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index 9f3f042..eea20da 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -193,6 +193,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get homeNoTransactions => 'No transactions';
+ @override
+ String get receiveTitle => 'Receive';
+
@override
String get receivePrimaryAddressWarn =>
'Warning: For better privacy, consider using subaddresses if supported by your light wallet server.';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index f11e1cc..8f72070 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -193,6 +193,9 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get homeNoTransactions => 'Sem transações';
+ @override
+ String get receiveTitle => 'Receber';
+
@override
String get receivePrimaryAddressWarn =>
'Aviso: Para maior privacidade, considere usar subendereços se o seu servidor de light wallet os suportar.';
diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb
index f25377a..0dae9c3 100644
--- a/lib/l10n/app_pt.arb
+++ b/lib/l10n/app_pt.arb
@@ -59,6 +59,7 @@
"homeIncomingTxSemanticLabel": "Transação de Entrada",
"homeTransactionConfirmed": "Confirmado",
"homeNoTransactions": "Sem transações",
+ "receiveTitle": "Receber",
"receivePrimaryAddressWarn": "Aviso: Para maior privacidade, considere usar subendereços se o seu servidor de light wallet os suportar.",
"receiveSubaddressWarn": "Aviso: Certifique-se de que seu servidor de light wallet suporta subendereços, caso contrário, você não conseguirá ver as transações recebidas.",
"receiveShareButton": "Compartilhar",
diff --git a/lib/screens/receive.dart b/lib/screens/receive.dart
index 75e8178..2f22096 100644
--- a/lib/screens/receive.dart
+++ b/lib/screens/receive.dart
@@ -86,6 +86,7 @@ class _ReceiveScreenState extends State<ReceiveScreen> {
final i18n = AppLocalizations.of(context)!;
return Scaffold(
+ appBar: AppBar(title: Text(i18n.receiveTitle)),
body: Center(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20),
diff --git a/lib/screens/send.dart b/lib/screens/send.dart
index 93cd539..be96c36 100644
--- a/lib/screens/send.dart
+++ b/lib/screens/send.dart
@@ -188,10 +188,10 @@ class _SendScreenState extends State<SendScreen> {
@override
Widget build(BuildContext context) {
final i18n = AppLocalizations.of(context)!;
-
final wallet = context.watch<WalletModel>();
return Scaffold(
+ appBar: AppBar(title: Text(i18n.sendTitle)),
body: Center(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20),
@@ -199,10 +199,10 @@ class _SendScreenState extends State<SendScreen> {
mainAxisAlignment: MainAxisAlignment.center,
spacing: 20,
children: [
- Text(
- i18n.sendTitle,
- style: Theme.of(context).textTheme.headlineMedium,
- ),
+ // Text(
+ // i18n.sendTitle,
+ // style: Theme.of(context).textTheme.headlineMedium,
+ // ),
TextField(
controller: _destinationAddressController,
maxLines: null,
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.