feat: integrate enakgame and voucher
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
This commit is contained in:
@@ -437,26 +437,17 @@ class _PaymentRow extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// Pembayaran EnakPoint: "EnakPoint 12.500 (Rp 12.500)".
|
||||
final title = payment.isPoint && payment.pointsUsed != null
|
||||
? '${WalletCurrency.point.label} ${payment.pointsUsed!.thousandFormat}'
|
||||
: payment.methodName;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (payment.isPoint) ...[
|
||||
const WalletCurrencyIcon(currency: WalletCurrency.point, size: 20),
|
||||
const SizedBox(width: 8),
|
||||
],
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
payment.methodName,
|
||||
style: AppStyle.sm.copyWith(fontWeight: FontWeight.w600),
|
||||
),
|
||||
if (payment.refundAmount > 0)
|
||||
@@ -468,9 +459,7 @@ class _PaymentRow extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
payment.isPoint
|
||||
? '(${payment.amount.currencyFormatRp})'
|
||||
: payment.amount.currencyFormatRp,
|
||||
payment.amount.currencyFormatRp,
|
||||
style: AppStyle.sm.copyWith(fontWeight: FontWeight.w600),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user