Multiple Wallet support, history of each wallet and updated payment page

This commit is contained in:
Arseni
2025-11-21 19:22:23 +03:00
parent 4c64a8d6e6
commit 87636a7ec3
68 changed files with 2154 additions and 701 deletions

View File

@@ -0,0 +1,27 @@
import 'package:flutter/material.dart';
import 'package:pshared/models/payment/methods/type.dart';
import 'package:pweb/providers/payment_methods.dart';
import 'package:pweb/utils/payment/dropdown.dart';
class PaymentMethodSelector extends StatelessWidget {
final PaymentMethodsProvider methodsProvider;
final ValueChanged<PaymentMethod> onMethodChanged;
const PaymentMethodSelector({
super.key,
required this.methodsProvider,
required this.onMethodChanged,
});
@override
Widget build(BuildContext context) {
return PaymentMethodDropdown(
methods: methodsProvider.methods,
initialValue: methodsProvider.selectedMethod,
onChanged: onMethodChanged,
);
}
}