Wallet update for correct name and symbol appearance

This commit is contained in:
Arseni
2025-12-16 19:37:28 +03:00
parent 67b52af150
commit 9a90e6a03b
12 changed files with 111 additions and 117 deletions

View File

@@ -5,18 +5,24 @@ import 'package:pweb/generated/i18n/app_localizations.dart';
class WalletTopUpHeader extends StatelessWidget {
final VoidCallback onBack;
final String walletName;
final String? tokenSymbol;
const WalletTopUpHeader({
super.key,
required this.onBack,
required this.walletName,
this.tokenSymbol,
});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final loc = AppLocalizations.of(context)!;
final symbol = tokenSymbol?.trim();
final subtitle = [
'Crypto Wallet',
if (symbol != null && symbol.isNotEmpty) symbol,
].join(' · ');
return Row(
children: [
@@ -34,7 +40,7 @@ class WalletTopUpHeader extends StatelessWidget {
),
const SizedBox(height: 4),
Text(
walletName,
subtitle,
style: theme.textTheme.bodyMedium?.copyWith(
color: theme.colorScheme.onSurfaceVariant,
),