mirror of
https://github.com/ente-io/ente.git
synced 2025-08-09 15:59:00 +00:00
[mob][photos] UI tweaks on pricing page
This commit is contained in:
parent
fb710ac41b
commit
ca3c7ae526
@ -162,19 +162,25 @@ class _Price extends StatelessWidget {
|
|||||||
final priceWithoutCurrency = price.substring(1);
|
final priceWithoutCurrency = price.substring(1);
|
||||||
final priceDouble = double.parse(priceWithoutCurrency);
|
final priceDouble = double.parse(priceWithoutCurrency);
|
||||||
final pricePerMonth = priceDouble / 12;
|
final pricePerMonth = priceDouble / 12;
|
||||||
final pricePerMonthString = pricePerMonth.toStringAsFixed(2);
|
String pricePerMonthString = pricePerMonth.toStringAsFixed(2);
|
||||||
|
|
||||||
|
if (pricePerMonthString.endsWith(".00")) {
|
||||||
|
pricePerMonthString =
|
||||||
|
pricePerMonthString.substring(0, pricePerMonthString.length - 3);
|
||||||
|
}
|
||||||
|
|
||||||
final bool isPlayStore = updateService.isPlayStoreFlavor();
|
final bool isPlayStore = updateService.isPlayStoreFlavor();
|
||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
if (isPlayStore)
|
if (isPlayStore)
|
||||||
Text(
|
Text(
|
||||||
price + " / " + "yr",
|
currencySymbol + pricePerMonthString + ' / ' + 'month',
|
||||||
style: textTheme.largeBold.copyWith(color: textBaseLight),
|
style: textTheme.largeBold.copyWith(color: textBaseLight),
|
||||||
),
|
),
|
||||||
if (isPlayStore)
|
if (isPlayStore)
|
||||||
Text(
|
Text(
|
||||||
currencySymbol + pricePerMonthString + ' / ' + 'month',
|
price + " / " + "yr",
|
||||||
style: textTheme.small.copyWith(color: textFaintLight),
|
style: textTheme.small.copyWith(color: textFaintLight),
|
||||||
),
|
),
|
||||||
if (!isPlayStore)
|
if (!isPlayStore)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user