Files
sendico/frontend/pweb/lib/pages/payment_methods/icon.dart
2026-01-22 20:05:27 +01:00

31 lines
875 B
Dart

import 'package:flutter/material.dart';
import 'package:pshared/models/payment/type.dart';
IconData iconForPaymentType(PaymentType type) {
switch (type) {
case PaymentType.bankAccount:
return Icons.account_balance; // bank / institution
case PaymentType.iban:
return Icons.public; // cross-border / international account
case PaymentType.ledger:
return Icons.account_balance; // internal ledger account (best fit)
case PaymentType.wallet:
return Icons.account_balance_wallet; // user wallet / stored funds
case PaymentType.card:
case PaymentType.cardToken:
return Icons.credit_card; // card rail
case PaymentType.externalChain:
return Icons.hub; // network / blockchain, not "bitcoin"
case PaymentType.managedWallet:
return Icons.currency_bitcoin; // custodial / managed / controlled
}
}