| 1 | import 'package:flutter/material.dart'; |
| 2 | import 'package:cake_wallet/buy/buy_provider_description.dart'; |
| 3 | |
| 4 | Image? getBuyProviderIcon(BuyProviderDescription providerDescription, |
| 5 | {Color iconColor = Colors.black}) { |
| 6 | final _wyreIcon = Image.asset('assets/images/wyre-icon.png', width: 36, height: 36); |
| 7 | final _moonPayIcon = |
| 8 | Image.asset('assets/images/moonpay-icon.png', color: iconColor, width: 36, height: 34); |
| 9 | |
| 10 | switch (providerDescription) { |
| 11 | case BuyProviderDescription.wyre: |
| 12 | return _wyreIcon; |
| 13 | case BuyProviderDescription.moonPay: |
| 14 | return _moonPayIcon; |
| 15 | default: |
| 16 | return null; |
| 17 | } |
| 18 | } |