mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 11:15:33 +00:00
Show tips if greater than 0
This commit is contained in:
parent
83d5c17b36
commit
8804cc2041
1 changed files with 9 additions and 0 deletions
|
@ -111,6 +111,15 @@ class IoniaGiftCardDetailPage extends BasePage {
|
|||
title: S.of(context).amount,
|
||||
subTitle: viewModel.giftCard.remainingAmount.toStringAsFixed(2) ?? '0.00',
|
||||
)),
|
||||
if(viewModel.giftCard.tip > 0)
|
||||
...[
|
||||
Divider(height: 30),
|
||||
buildIoniaTile(
|
||||
context,
|
||||
title: S.of(context).tip,
|
||||
subTitle: viewModel.giftCard.tip.toStringAsFixed(2),
|
||||
)],
|
||||
|
||||
Divider(height: 50),
|
||||
TextIconButton(
|
||||
label: S.of(context).how_to_use_card,
|
||||
|
|
Loading…
Reference in a new issue