Wrap long passphrase value on the wallet seed/keys screen (#3480)
What changed, and why it matters
This commit is a minor user-interface fix that makes very long wallet passphrases wrap to multiple lines instead of overflowing the screen. It does not change security behavior, cryptography, or how secrets are stored or protected.
No security action needed; treat as a normal UI/layout fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adjusts Flutter layout widgets in wallet_keys_page.dart so a long passphrase Text widget is wrapped inside an Expanded container with crossAxisAlignment set to start. The same passphrase value is still displayed or hidden behind ‘*’ based on the existing obscurePassphrase state. No logic, validation, storage, or access-control code is modified.
Changed components
lib/src/screens/wallet_keys/wallet_keys_page.dartInspect captured patch +17 / −12
diff --git a/lib/src/screens/wallet_keys/wallet_keys_page.dart b/lib/src/screens/wallet_keys/wallet_keys_page.dart
index ebd4e74..e5cb40c 100644
--- a/lib/src/screens/wallet_keys/wallet_keys_page.dart
+++ b/lib/src/screens/wallet_keys/wallet_keys_page.dart
@@ -300,6 +300,7 @@ class _WalletKeysPageBodyState extends State<WalletKeysPageBody>
color: Theme.of(context).colorScheme.surfaceContainer,
),
child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
@@ -313,21 +314,25 @@ class _WalletKeysPageBodyState extends State<WalletKeysPageBody>
const SizedBox(width: 6),
Expanded(
child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
- Observer(
- builder: (BuildContext context) {
- return Text(
- (widget.walletKeysViewModel.obscurePassphrase)
- ? "*****"
- : widget.walletKeysViewModel.passphrase,
- style: Theme.of(context).textTheme.bodyMedium!.copyWith(
- fontWeight: FontWeight.w500,
- color: Theme.of(context).colorScheme.onSurfaceVariant,
- ),
- );
- },
+ Expanded(
+ child: Observer(
+ builder: (BuildContext context) {
+ return Text(
+ (widget.walletKeysViewModel.obscurePassphrase)
+ ? "*****"
+ : widget.walletKeysViewModel.passphrase,
+ style: Theme.of(context).textTheme.bodyMedium!.copyWith(
+ fontWeight: FontWeight.w500,
+ color: Theme.of(context).colorScheme.onSurfaceVariant,
+ ),
+ );
+ },
+ ),
),
+ const SizedBox(width: 6),
Observer(
builder: (BuildContext context) {
return GestureDetector(
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.