added comment for payment, changed intent and added amount ui in operations

This commit is contained in:
Arseni
2026-03-12 00:09:38 +03:00
parent ddc2f1facc
commit 13b84e1e0f
26 changed files with 271 additions and 298 deletions

View File

@@ -3,6 +3,7 @@ import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:pshared/provider/payment/flow.dart';
import 'package:pshared/provider/payment/amount.dart';
import 'package:pshared/provider/payment/provider.dart';
import 'package:pshared/provider/payment/quotation/quotation.dart';
import 'package:pshared/provider/recipient/provider.dart';
@@ -14,6 +15,7 @@ class PaymentPageController extends ChangeNotifier {
PaymentProvider? _payment;
QuotationProvider? _quotation;
PaymentFlowProvider? _flow;
PaymentAmountProvider? _amount;
RecipientsProvider? _recipients;
bool _isSending = false;
@@ -26,11 +28,13 @@ class PaymentPageController extends ChangeNotifier {
PaymentProvider payment,
QuotationProvider quotation,
PaymentFlowProvider flow,
PaymentAmountProvider amount,
RecipientsProvider recipients,
) {
_payment = payment;
_quotation = quotation;
_flow = flow;
_amount = amount;
_recipients = recipients;
}
@@ -59,6 +63,7 @@ class PaymentPageController extends ChangeNotifier {
_quotation?.reset();
_payment?.reset();
_flow?.setManualPaymentData(null);
_amount?.setComment('');
_recipients?.setCurrentObject(null);
}