Refresh button for balance

This commit is contained in:
Arseni
2025-12-30 18:36:29 +03:00
parent 202582626a
commit b157522fdb
8 changed files with 148 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import 'package:pweb/pages/dashboard/buttons/balance/amount.dart';
import 'package:pweb/pages/dashboard/buttons/balance/config.dart';
import 'package:pweb/pages/dashboard/buttons/balance/header.dart';
import 'package:pshared/provider/payment/wallets.dart';
import 'package:pweb/widgets/wallet_balance_refresh_button.dart';
class WalletCard extends StatelessWidget {
@@ -37,11 +38,18 @@ class WalletCard extends StatelessWidget {
walletNetwork: wallet.network,
tokenSymbol: wallet.tokenSymbol,
),
BalanceAmount(
wallet: wallet,
onToggleVisibility: () {
context.read<WalletsProvider>().toggleVisibility(wallet.id);
},
Row(
children: [
BalanceAmount(
wallet: wallet,
onToggleVisibility: () {
context.read<WalletsProvider>().toggleVisibility(wallet.id);
},
),
WalletBalanceRefreshButton(
walletId: wallet.id,
),
],
),
BalanceAddFunds(
onTopUp: () {