|
|
|
@ -513,9 +513,11 @@ class _MeetingHomeViewState extends State<MeetingHomeView> |
|
|
|
} |
|
|
|
|
|
|
|
String _formatHms(int seconds) { |
|
|
|
int h = seconds ~/ 3600; |
|
|
|
int m = (seconds % 3600) ~/ 60; |
|
|
|
int s = seconds % 60; |
|
|
|
final sec = seconds < 0 ? 0 : seconds; // 确保秒数非负 |
|
|
|
final d = Duration(seconds: sec); |
|
|
|
final h = d.inHours; |
|
|
|
final m = d.inMinutes.remainder(60); |
|
|
|
final s = d.inSeconds.remainder(60); |
|
|
|
String twoDigits(int n) => n.toString().padLeft(2, '0'); |
|
|
|
return '${twoDigits(h)}:${twoDigits(m)}:${twoDigits(s)}'; |
|
|
|
} |
|
|
|
|