WIP: integration with ledger

This commit is contained in:
Arseni
2026-02-04 02:01:22 +03:00
parent f1f16a30e6
commit f44ef56ff3
32 changed files with 1226 additions and 405 deletions

View File

@@ -10,11 +10,15 @@ import 'package:pweb/pages/payout_page/wallet/wigets.dart';
import 'package:pweb/generated/i18n/app_localizations.dart';
class PaymentConfigPage extends StatelessWidget {
final Function(Wallet) onWalletTap;
final Function(String ledgerAccountRef) onLedgerTap;
const PaymentConfigPage({super.key, required this.onWalletTap});
const PaymentConfigPage({
super.key,
required this.onWalletTap,
required this.onLedgerTap,
});
@override
Widget build(BuildContext context) {
@@ -26,14 +30,21 @@ class PaymentConfigPage extends StatelessWidget {
}
if (provider.error != null) {
return Center(child: Text(loc.notificationError(provider.error ?? loc.noErrorInformation)));
return Center(
child: Text(
loc.notificationError(provider.error ?? loc.noErrorInformation),
),
);
}
return Column(
children: [
MethodsWidget(),
Expanded(
child: WalletWidgets(onWalletTap: onWalletTap),
child: WalletWidgets(
onWalletTap: onWalletTap,
onLedgerTap: onLedgerTap,
),
),
],
);