Update decimals formatting for tips group. (#444)

This commit is contained in:
mkyq 2022-07-28 19:13:06 +01:00 committed by GitHub
parent b777dd9e7b
commit 66efb635ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,8 +394,8 @@ class TipButtonGroup extends StatelessWidget {
child: TipButton(
isSelected: _isSelected(tip.percentage),
onTap: () => onSelect(tip),
caption: '${tip.percentage}%',
subTitle: '\$${tip.additionalAmount}',
caption: '${tip.percentage.toStringAsFixed(0)}%',
subTitle: '\$${tip.additionalAmount.toStringAsFixed(2)}',
));
}));
}