display days correct
parent
134bf1ae59
commit
f04ddb40e1
|
@ -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:';
|
||||||
|
|
Loading…
Reference in New Issue