diff --git a/lib/presentation/home/pages/confirm_payment_page.dart b/lib/presentation/home/pages/confirm_payment_page.dart index 143e7b5..76f4450 100644 --- a/lib/presentation/home/pages/confirm_payment_page.dart +++ b/lib/presentation/home/pages/confirm_payment_page.dart @@ -483,8 +483,12 @@ class _ConfirmPaymentPageState extends State { (serviceCharge / 100) * subTotal; final total = subTotal + finalTax + service; priceValue = total.toInt(); - totalPriceController.text = - total.ceil().currencyFormatRpV2; + + WidgetsBinding.instance + .addPostFrameCallback((_) { + totalPriceController.text = + total.ceil().currencyFormatRpV2; + }); uangPas = total.ceil(); uangPas2 = uangPas ~/ 50000 * 50000 + 50000; uangPas3 =