feat(ui): 결제 금액 UI 표시 적용

This commit is contained in:
JiWoong Sul
2026-01-14 00:18:37 +09:00
parent 6e7a7d2477
commit 18a0004d57
5 changed files with 42 additions and 15 deletions

View File

@@ -203,7 +203,7 @@ class MainScreenSummaryCard extends StatelessWidget {
// 연간 비용 및 총 구독 수 표시
FutureBuilder<double>(
future: CurrencyUtil
.calculateTotalMonthlyExpenseInDefaultCurrency(
.calculateTotalAnnualExpenseInDefaultCurrency(
provider.subscriptions,
locale,
),
@@ -211,8 +211,7 @@ class MainScreenSummaryCard extends StatelessWidget {
if (!snapshot.hasData) {
return const SizedBox();
}
final monthlyCost = snapshot.data!;
final yearlyCost = monthlyCost * 12;
final yearlyCost = snapshot.data!;
final decimals = (defaultCurrency == 'KRW' ||
defaultCurrency == 'JPY')
? 0