ledger top up functionality and few small fixes for project architechture and design
This commit is contained in:
@@ -27,6 +27,7 @@ class DashboardPage extends StatefulWidget {
|
||||
final ValueChanged<Recipient> onRecipientSelected;
|
||||
final void Function(PaymentType type) onGoToPaymentWithoutRecipient;
|
||||
final ValueChanged<Wallet> onTopUp;
|
||||
final ValueChanged<LedgerAccount> onLedgerAddFunds;
|
||||
final ValueChanged<Wallet> onWalletTap;
|
||||
final ValueChanged<LedgerAccount> onLedgerTap;
|
||||
|
||||
@@ -35,6 +36,7 @@ class DashboardPage extends StatefulWidget {
|
||||
required this.onRecipientSelected,
|
||||
required this.onGoToPaymentWithoutRecipient,
|
||||
required this.onTopUp,
|
||||
required this.onLedgerAddFunds,
|
||||
required this.onWalletTap,
|
||||
required this.onLedgerTap,
|
||||
});
|
||||
@@ -90,6 +92,7 @@ class _DashboardPageState extends State<DashboardPage> {
|
||||
BalanceWidgetProviders(
|
||||
child: BalanceWidget(
|
||||
onTopUp: widget.onTopUp,
|
||||
onLedgerAddFunds: widget.onLedgerAddFunds,
|
||||
onWalletTap: widget.onWalletTap,
|
||||
onLedgerTap: widget.onLedgerTap,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user