fix: bug state

This commit is contained in:
efrilm 2025-08-04 01:23:25 +07:00
parent 6fb1a7d0c4
commit c1a739f7bd

View File

@ -483,8 +483,12 @@ class _ConfirmPaymentPageState extends State<ConfirmPaymentPage> {
(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 =