refactored live info panel missing form last checkin

This commit is contained in:
2026-04-30 07:43:23 +00:00
parent af7eb3b7f8
commit deaa4db158
+11 -6
View File
@@ -20,10 +20,12 @@ class LiveInfoPanel extends StatelessWidget {
final LiveInfoSnapshot? snapshot = liveInfo.snapshot; final LiveInfoSnapshot? snapshot = liveInfo.snapshot;
final LiveInfoTrackInfo? current = snapshot?.current; final LiveInfoTrackInfo? current = snapshot?.current;
final LiveInfoTrackInfo? next = snapshot?.next; final LiveInfoTrackInfo? next = snapshot?.next;
final LiveInfoShowInfo? currentShow = final LiveInfoShowInfo? currentShow = snapshot?.currentShow.isEmpty ?? true
snapshot?.currentShow.isEmpty ?? true ? null : snapshot!.currentShow.first; ? null
final LiveInfoShowInfo? nextShow = : snapshot!.currentShow.first;
snapshot?.nextShow.isEmpty ?? true ? null : snapshot!.nextShow.first; final LiveInfoShowInfo? nextShow = snapshot?.nextShow.isEmpty ?? true
? null
: snapshot!.nextShow.first;
return Container( return Container(
decoration: BoxDecoration( decoration: BoxDecoration(
@@ -116,7 +118,9 @@ class LiveInfoPanel extends StatelessWidget {
), ),
IconButton( IconButton(
tooltip: 'Refresh now', tooltip: 'Refresh now',
onPressed: liveInfo.isLoading ? null : () => liveInfo.refresh(), onPressed: liveInfo.isLoading
? null
: () => liveInfo.refresh(),
icon: const Icon(Icons.refresh_rounded), icon: const Icon(Icons.refresh_rounded),
), ),
], ],
@@ -199,7 +203,8 @@ class LiveInfoPanel extends StatelessWidget {
color: Colors.black.withValues(alpha: 0.08), color: Colors.black.withValues(alpha: 0.08),
), ),
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
final RecentPlayedItem item = liveInfo.recentPlayed[index]; final RecentPlayedItem item =
liveInfo.recentPlayed[index];
return ListTile( return ListTile(
dense: true, dense: true,
contentPadding: const EdgeInsets.symmetric( contentPadding: const EdgeInsets.symmetric(