display days correct

main
Julian Gegner 2023-03-06 18:13:34 +01:00
parent 134bf1ae59
commit f04ddb40e1
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ String formatTime(int seconds) {
String minutes = twoDigits(duration.inMinutes.remainder(60)); String minutes = twoDigits(duration.inMinutes.remainder(60));
String formattedSeconds = twoDigits(duration.inSeconds.remainder(60)); String formattedSeconds = twoDigits(duration.inSeconds.remainder(60));
if (duration.inDays != 0) { if (duration.inDays != 0) {
formattedTime += '$days Tag ${duration.inDays > 1 ? "e" : ""}, '; formattedTime += '$days Tag${duration.inDays > 1 ? "e" : ""}, ';
} }
if (duration.inHours != 0) formattedTime += '$hours:'; if (duration.inHours != 0) formattedTime += '$hours:';
formattedTime += '$minutes:'; formattedTime += '$minutes:';