changed color theme to be black and added the ability to enter the amount in the recipient’s currency

This commit is contained in:
Arseni
2026-03-02 17:41:41 +03:00
parent 17e08ff26f
commit 6bb3ab5063
41 changed files with 618 additions and 239 deletions

View File

@@ -45,37 +45,37 @@ class WalletCard extends StatelessWidget {
child: InkWell(
borderRadius: BorderRadius.circular(WalletCardConfig.borderRadius),
onTap: onTap,
child: SizedBox.expand(
child: Padding(
padding: WalletCardConfig.contentPadding,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
BalanceHeader(
title: loc.paymentTypeCryptoWallet,
subtitle: networkLabel,
badge: (symbol == null || symbol.isEmpty) ? null : symbol,
),
Row(
children: [
BalanceAmount(
wallet: wallet,
onToggleMask: () {
context.read<WalletsController>().toggleBalanceMask(wallet.id);
},
),
WalletBalanceRefreshButton(
walletRef: wallet.id,
),
],
),
BalanceAddFunds(onTopUp: onTopUp),
],
child: SizedBox.expand(
child: Padding(
padding: WalletCardConfig.contentPadding,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
BalanceHeader(
title: loc.paymentTypeCryptoWallet,
subtitle: networkLabel,
badge: (symbol == null || symbol.isEmpty) ? null : symbol,
),
Row(
children: [
BalanceAmount(
wallet: wallet,
onToggleMask: () {
context.read<WalletsController>().toggleBalanceMask(wallet.id);
},
),
WalletBalanceRefreshButton(
walletRef: wallet.id,
),
],
),
BalanceAddFunds(onTopUp: onTopUp),
],
),
),
),
),
),
);
}
}

View File

@@ -24,11 +24,12 @@ class TransactionRefButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context).colorScheme;
final backgroundColor = isActive ? theme.primary : theme.onSecondary;
final foregroundColor = isActive ? theme.onPrimary : theme.onPrimaryContainer;
final hoverColor = isActive ? theme.primary : theme.secondaryContainer;
final theme = Theme.of(context);
final colorScheme = theme.colorScheme;
final selectedBackground = colorScheme.onSecondary;
final backgroundColor = isActive ? colorScheme.primary : selectedBackground;
final hoverColor = isActive ? colorScheme.primary : colorScheme.surfaceContainerHighest;
final foregroundColor = isActive ? colorScheme.onPrimary : colorScheme.primary;
return Material(
color: backgroundColor,
@@ -65,4 +66,4 @@ class TransactionRefButton extends StatelessWidget {
),
);
}
}
}