From c1a739f7bd5473fe9506df966eb247aa5c0ab2ad Mon Sep 17 00:00:00 2001 From: efrilm Date: Mon, 4 Aug 2025 01:23:25 +0700 Subject: [PATCH] fix: bug state --- lib/presentation/home/pages/confirm_payment_page.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 =