solyanka iz fix for payout page design, ledger wallet now clickable

This commit is contained in:
Arseni
2026-03-05 15:48:52 +03:00
parent a9b00b6871
commit d6a3a0cc5b
31 changed files with 596 additions and 370 deletions

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:pshared/models/ledger/account.dart';
import 'package:pshared/models/payment/type.dart';
import 'package:pshared/models/recipient/recipient.dart';
import 'package:pshared/models/payment/wallet.dart';
@@ -15,6 +16,7 @@ import 'package:pweb/pages/loader.dart';
import 'package:pweb/generated/i18n/app_localizations.dart';
class AppSpacing {
static const double small = 10;
static const double medium = 16;
@@ -26,6 +28,7 @@ class DashboardPage extends StatefulWidget {
final void Function(PaymentType type) onGoToPaymentWithoutRecipient;
final ValueChanged<Wallet> onTopUp;
final ValueChanged<Wallet> onWalletTap;
final ValueChanged<LedgerAccount> onLedgerTap;
const DashboardPage({
super.key,
@@ -33,6 +36,7 @@ class DashboardPage extends StatefulWidget {
required this.onGoToPaymentWithoutRecipient,
required this.onTopUp,
required this.onWalletTap,
required this.onLedgerTap,
});
@override
@@ -87,6 +91,7 @@ class _DashboardPageState extends State<DashboardPage> {
child: BalanceWidget(
onTopUp: widget.onTopUp,
onWalletTap: widget.onWalletTap,
onLedgerTap: widget.onLedgerTap,
),
),
const SizedBox(height: AppSpacing.small),