corrected icon text. created info panel to replace web view with station stream info from airtime #1
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user