refactored live info panel missing form last checkin
This commit is contained in:
@@ -20,10 +20,12 @@ class LiveInfoPanel extends StatelessWidget {
|
||||
final LiveInfoSnapshot? snapshot = liveInfo.snapshot;
|
||||
final LiveInfoTrackInfo? current = snapshot?.current;
|
||||
final LiveInfoTrackInfo? next = snapshot?.next;
|
||||
final LiveInfoShowInfo? currentShow =
|
||||
snapshot?.currentShow.isEmpty ?? true ? null : snapshot!.currentShow.first;
|
||||
final LiveInfoShowInfo? nextShow =
|
||||
snapshot?.nextShow.isEmpty ?? true ? null : snapshot!.nextShow.first;
|
||||
final LiveInfoShowInfo? currentShow = snapshot?.currentShow.isEmpty ?? true
|
||||
? null
|
||||
: snapshot!.currentShow.first;
|
||||
final LiveInfoShowInfo? nextShow = snapshot?.nextShow.isEmpty ?? true
|
||||
? null
|
||||
: snapshot!.nextShow.first;
|
||||
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
@@ -116,7 +118,9 @@ class LiveInfoPanel extends StatelessWidget {
|
||||
),
|
||||
IconButton(
|
||||
tooltip: 'Refresh now',
|
||||
onPressed: liveInfo.isLoading ? null : () => liveInfo.refresh(),
|
||||
onPressed: liveInfo.isLoading
|
||||
? null
|
||||
: () => liveInfo.refresh(),
|
||||
icon: const Icon(Icons.refresh_rounded),
|
||||
),
|
||||
],
|
||||
@@ -199,7 +203,8 @@ class LiveInfoPanel extends StatelessWidget {
|
||||
color: Colors.black.withValues(alpha: 0.08),
|
||||
),
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
final RecentPlayedItem item = liveInfo.recentPlayed[index];
|
||||
final RecentPlayedItem item =
|
||||
liveInfo.recentPlayed[index];
|
||||
return ListTile(
|
||||
dense: true,
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
|
||||
Reference in New Issue
Block a user