added comment for payment, changed intent and added amount ui in operations
This commit is contained in:
@@ -145,16 +145,27 @@ RouteBase payoutShellRoute() => ShellRoute(
|
||||
update: (context, verification, controller) =>
|
||||
controller!..update(verification),
|
||||
),
|
||||
ChangeNotifierProxyProvider4<
|
||||
ChangeNotifierProxyProvider5<
|
||||
PaymentProvider,
|
||||
QuotationProvider,
|
||||
PaymentFlowProvider,
|
||||
PaymentAmountProvider,
|
||||
RecipientsProvider,
|
||||
PaymentPageController
|
||||
>(
|
||||
create: (_) => PaymentPageController(),
|
||||
update: (context, payment, quotation, flow, recipients, controller) =>
|
||||
controller!..update(payment, quotation, flow, recipients),
|
||||
update:
|
||||
(
|
||||
context,
|
||||
payment,
|
||||
quotation,
|
||||
flow,
|
||||
amount,
|
||||
recipients,
|
||||
controller,
|
||||
) =>
|
||||
controller!
|
||||
..update(payment, quotation, flow, amount, recipients),
|
||||
),
|
||||
ChangeNotifierProxyProvider<
|
||||
OrganizationsProvider,
|
||||
@@ -301,6 +312,12 @@ RouteBase payoutShellRoute() => ShellRoute(
|
||||
name: PayoutRoutes.payment,
|
||||
path: PayoutRoutes.paymentPath,
|
||||
pageBuilder: (context, state) {
|
||||
final amountProvider = context.read<PaymentAmountProvider>();
|
||||
if (amountProvider.comment.isNotEmpty) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
amountProvider.setComment('');
|
||||
});
|
||||
}
|
||||
final fallbackDestination = PayoutDestination.dashboard;
|
||||
|
||||
return NoTransitionPage(
|
||||
|
||||
Reference in New Issue
Block a user