Fixed issue with wallet form feild and made page selecor in dashboard into a router

This commit is contained in:
Arseni
2025-11-27 18:07:28 +03:00
parent 44446c6ad4
commit 9c16e27645
7 changed files with 280 additions and 118 deletions

View File

@@ -1,9 +1,13 @@
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:provider/provider.dart';
import 'package:pweb/app/router/payout_routes.dart';
import 'package:pweb/providers/page_selector.dart';
import 'package:pweb/providers/wallets.dart';
import 'package:pweb/widgets/sidebar/destinations.dart';
import 'package:pweb/generated/i18n/app_localizations.dart';
@@ -26,6 +30,7 @@ class SendPayoutButton extends StatelessWidget {
if (wallet != null) {
pageSelectorProvider.startPaymentFromWallet(wallet);
context.go(payoutPath(PayoutDestination.payment));
}
},
child: Text(loc.payoutNavSendPayout),