removes the play history widget from the live info panel. Co-authored-by: Copilot <copilot@github.com>
12 lines
264 B
Dart
12 lines
264 B
Dart
String formatTimeWindow(String? starts, String? ends) {
|
|
String formatOne(String? value) {
|
|
if (value == null || value.length < 16) {
|
|
return '--:--';
|
|
}
|
|
|
|
return value.substring(11, 16);
|
|
}
|
|
|
|
return '${formatOne(starts)} - ${formatOne(ends)}';
|
|
}
|