Truncate to double

This commit is contained in:
Godwin Asuquo 2022-09-09 13:16:40 +03:00
parent 424cf25052
commit 43b5c50669

View file

@ -117,7 +117,7 @@ class IoniaCustomRedeemPage extends BasePage {
Observer(builder: (_)=>
!ioniaCustomRedeemViewModel.disableRedeem ?
Center(
child: Text('\$${giftCard.remainingAmount} - \$${ioniaCustomRedeemViewModel.amount} = \$${ioniaCustomRedeemViewModel.remaining} ${S.of(context).remaining}',
child: Text('\$${giftCard.remainingAmount} - \$${ioniaCustomRedeemViewModel.amount} = \$${ioniaCustomRedeemViewModel.remaining.toStringAsFixed(2)} ${S.of(context).remaining}',
style: TextStyle(
color: Theme.of(context).primaryTextTheme.headline.color,
),),