Refactors visual widgets from live_info_panel into their own widgets.
removes the play history widget from the live info panel. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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)}';
|
||||
}
|
||||
Reference in New Issue
Block a user