mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 20:09:24 +00:00
Fixed formatting for display ionia discounts.
This commit is contained in:
parent
cb1ca8c595
commit
3a9210c8cb
2 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ class _IoniaManageCardsPageBodyState extends State<IoniaManageCardsPageBody> {
|
|||
backgroundColor: Theme.of(context).textTheme.title.backgroundColor,
|
||||
titleColor: Theme.of(context).accentTextTheme.display3.backgroundColor,
|
||||
subtitleColor: Theme.of(context).accentTextTheme.display2.backgroundColor,
|
||||
discount: merchant.discount,
|
||||
discount: merchant.discount.toStringAsFixed(2),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
|
|
@ -16,7 +16,7 @@ class DiscountBadge extends StatelessWidget {
|
|||
return Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
child: Text(
|
||||
S.of(context).discount(percentage.toString()),
|
||||
S.of(context).discount(percentage.toStringAsFixed(2)),
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 12,
|
||||
|
|
Loading…
Reference in a new issue