From d5e65a5c418f3021ab565bef1ec7a5a965d725f3 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Sun, 10 Sep 2023 12:09:42 +0200 Subject: [PATCH] update upload download link stats --- assets/translations/strings_fa.i18n.json | 4 ++-- lib/features/common/stats/stats_overview.dart | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/assets/translations/strings_fa.i18n.json b/assets/translations/strings_fa.i18n.json index 21ec8bca..00766d6b 100644 --- a/assets/translations/strings_fa.i18n.json +++ b/assets/translations/strings_fa.i18n.json @@ -22,8 +22,8 @@ "stats": { "traffic": "مصرف لحظه‌ای", "trafficTotal": "مصرف کل", - "uplink": "🔺", - "downlink": "🔻" + "uplink": "↑", + "downlink": "↓" } }, "profile": { diff --git a/lib/features/common/stats/stats_overview.dart b/lib/features/common/stats/stats_overview.dart index 79be1435..3e83ea16 100644 --- a/lib/features/common/stats/stats_overview.dart +++ b/lib/features/common/stats/stats_overview.dart @@ -80,9 +80,12 @@ class _StatCard extends HookConsumerWidget { children: [ Text( firstStat.label, + style: TextStyle(color: Colors.green), + ), + Text( + firstStat.data, style: theme.textTheme.bodySmall, ), - Text(firstStat.data), ], ), Row( @@ -90,9 +93,12 @@ class _StatCard extends HookConsumerWidget { children: [ Text( secondStat.label, + style: TextStyle(color: Colors.red), + ), + Text( + secondStat.data, style: theme.textTheme.bodySmall, ), - Text(secondStat.data), ], ), ],