Fixed formatting for display ionia discounts.

This commit is contained in:
M 2022-07-27 16:15:18 +01:00
parent cb1ca8c595
commit 3a9210c8cb
2 changed files with 2 additions and 2 deletions

View file

@ -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),
);
},
),

View file

@ -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,