All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
18 lines
555 B
Dart
18 lines
555 B
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
import 'package:pshared/models/payment/type.dart';
|
|
|
|
import 'package:pweb/generated/i18n/app_localizations.dart';
|
|
|
|
|
|
String getPaymentTypeLabel(BuildContext context, PaymentType type) {
|
|
final l10n = AppLocalizations.of(context)!;
|
|
return switch (type) {
|
|
PaymentType.card => l10n.paymentTypeCard,
|
|
PaymentType.bankAccount => l10n.paymentTypeBankAccount,
|
|
PaymentType.iban => l10n.paymentTypeIban,
|
|
PaymentType.wallet => l10n.paymentTypeWallet,
|
|
PaymentType.cryptoAddress => 'Crypto address',
|
|
};
|
|
}
|