What changed, and why it matters
This commit is a minor user-interface tweak for the desktop version of Stack Wallet. It wraps a wallet name text widget so long names are truncated with an ellipsis instead of overflowing their container. There is no security relevance in the change.
No security action needed. Treat as a normal UI fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies lib/widgets/wallet_info_row/wallet_info_row.dart. When no contract is present, the wallet.info.name Text widget is now placed inside an Expanded widget and given overflow: TextOverflow.ellipsis. This prevents layout overflow on desktop when wallet names are long. The change is purely presentational and does not touch data handling, cryptography, networking, permissions, or authentication.
Changed components
lib/widgets/wallet_info_row/wallet_info_row.dartInspect captured patch +27 / −26
diff --git a/lib/widgets/wallet_info_row/wallet_info_row.dart b/lib/widgets/wallet_info_row/wallet_info_row.dart
index 381d0e0..69aa906 100644
--- a/lib/widgets/wallet_info_row/wallet_info_row.dart
+++ b/lib/widgets/wallet_info_row/wallet_info_row.dart
@@ -67,37 +67,38 @@ class WalletInfoRow extends ConsumerWidget {
const SizedBox(width: 12),
contract != null
? Row(
- children: [
- Text(
- contract.name,
- style: STextStyles.desktopTextExtraSmall(
- context,
- ).copyWith(
- color:
- Theme.of(
+ children: [
+ Text(
+ contract.name,
+ style:
+ STextStyles.desktopTextExtraSmall(
context,
- ).extension<StackColors>()!.textDark,
+ ).copyWith(
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textDark,
+ ),
),
- ),
- const SizedBox(width: 4),
- CoinTickerTag(
- ticker: ref.watch(
- pWalletCoin(walletId).select((s) => s.ticker),
+ const SizedBox(width: 4),
+ CoinTickerTag(
+ ticker: ref.watch(
+ pWalletCoin(walletId).select((s) => s.ticker),
+ ),
),
+ ],
+ )
+ : Expanded(
+ child: Text(
+ wallet.info.name,
+ overflow: TextOverflow.ellipsis,
+ style: STextStyles.desktopTextExtraSmall(context)
+ .copyWith(
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textDark,
+ ),
),
- ],
- )
- : Text(
- wallet.info.name,
- style: STextStyles.desktopTextExtraSmall(
- context,
- ).copyWith(
- color:
- Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
),
- ),
],
),
),
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.