|
|
@@ -91,8 +91,9 @@ class CountdownTimer {
|
|
|
String twoDigits(int n) => n.toString().padLeft(2, '0');
|
|
|
String threeDigits(int n) => n.toString().padLeft(3, '0');
|
|
|
|
|
|
+ int milliseconds = (duration.inMicroseconds ~/ 1000) % 1000;
|
|
|
return "${twoDigits(duration.inMinutes)}:"
|
|
|
"${twoDigits(duration.inSeconds % 60)}:"
|
|
|
- "${threeDigits(duration.inMilliseconds % 1000)}";
|
|
|
+ "${threeDigits(milliseconds)}";
|
|
|
}
|
|
|
}
|