import 'package:flutter/material.dart'; class BalanceHeader extends StatelessWidget { final String? walletNetwork; final String? tokenSymbol; const BalanceHeader({ super.key, this.walletNetwork, this.tokenSymbol, }); @override Widget build(BuildContext context) { final textTheme = Theme.of(context).textTheme; final colorScheme = Theme.of(context).colorScheme; final symbol = tokenSymbol?.trim(); return Row( children: [ Text( 'Crypto Wallet', style: textTheme.titleMedium?.copyWith( color: colorScheme.onSurface, ), ), if (symbol != null && symbol.isNotEmpty) ...[ const SizedBox(width: 8), Container( padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), decoration: BoxDecoration( color: colorScheme.primaryContainer, borderRadius: BorderRadius.circular(999), ), child: Text( symbol, style: textTheme.bodyMedium?.copyWith( color: colorScheme.onPrimaryContainer, fontWeight: FontWeight.w600, ), ), ), ], ], ); } }