多语言支持
This commit is contained in:
@@ -23,7 +23,7 @@ class _HistoryScreenState extends State<HistoryScreen> {
|
||||
final sessions = _storageService.getAllSessions();
|
||||
final todayTotal = _storageService.getTodayTotalMinutes();
|
||||
final todayDistractions = _storageService.getTodayDistractionCount();
|
||||
final todayCompleted = _storageService.getTodayCompletedCount();
|
||||
final todaySessions = _storageService.getTodaySessionsCount();
|
||||
|
||||
// Group sessions by date
|
||||
final sessionsByDate = <DateTime, List<FocusSession>>{};
|
||||
@@ -59,7 +59,7 @@ class _HistoryScreenState extends State<HistoryScreen> {
|
||||
l10n,
|
||||
todayTotal,
|
||||
todayDistractions,
|
||||
todayCompleted,
|
||||
todaySessions,
|
||||
),
|
||||
|
||||
const SizedBox(height: 24),
|
||||
@@ -108,7 +108,7 @@ class _HistoryScreenState extends State<HistoryScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildTodaySummary(AppLocalizations l10n, int totalMins, int distractions, int completed) {
|
||||
Widget _buildTodaySummary(AppLocalizations l10n, int totalMins, int distractions, int sessions) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(24),
|
||||
decoration: BoxDecoration(
|
||||
@@ -140,7 +140,7 @@ class _HistoryScreenState extends State<HistoryScreen> {
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
child: Text(
|
||||
l10n.sessions(completed),
|
||||
l10n.sessions(sessions),
|
||||
style: const TextStyle(
|
||||
fontFamily: 'Nunito',
|
||||
fontSize: 14,
|
||||
|
||||
Reference in New Issue
Block a user