redesigned payment page + a lot of fixes

This commit is contained in:
Arseni
2026-02-21 21:55:20 +03:00
parent a68aa2abff
commit 0c6fa03aba
208 changed files with 4062 additions and 2217 deletions

View File

@@ -0,0 +1,37 @@
import 'package:flutter/foundation.dart';
import 'package:pshared/provider/payment/multiple/quotation.dart';
class MultiQuotationController extends ChangeNotifier {
MultiQuotationProvider? _quotation;
void update(MultiQuotationProvider quotation) {
if (identical(_quotation, quotation)) return;
_quotation?.removeListener(_handleQuotationChanged);
_quotation = quotation;
_quotation?.addListener(_handleQuotationChanged);
_handleQuotationChanged();
}
bool get isLoading => _quotation?.isLoading ?? false;
Exception? get error => _quotation?.error;
bool get canRefresh => _quotation?.canRefresh ?? false;
bool get isReady => _quotation?.isReady ?? false;
DateTime? get quoteExpiresAt => _quotation?.quoteExpiresAt;
void refreshQuotation() {
_quotation?.refreshQuotation();
}
void _handleQuotationChanged() {
notifyListeners();
}
@override
void dispose() {
_quotation?.removeListener(_handleQuotationChanged);
super.dispose();
}
}