Files
kryz-go-flutter/lib/show_card.dart
T
kfj001andCopilot 6893758a16 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>
2026-05-08 22:42:10 -07:00

51 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'live_info_business_object.dart';
import 'time_formatter.dart';
class ShowCard extends StatelessWidget {
const ShowCard({
super.key,
required this.label,
required this.show,
required this.titleColor,
});
final String label;
final LiveInfoShowInfo? show;
final Color titleColor;
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: Colors.black.withValues(alpha: 0.06),
border: Border.all(color: Colors.black.withValues(alpha: 0.08)),
),
child: Row(
children: [
Icon(Icons.mic_external_on_rounded, color: titleColor, size: 18),
const SizedBox(width: 8),
Expanded(
child: Text(
'$label: ${show?.name ?? 'No scheduled show'}',
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(
context,
).textTheme.bodyMedium?.copyWith(fontWeight: FontWeight.w600),
),
),
const SizedBox(width: 8),
Text(
formatTimeWindow(show?.starts, show?.ends),
style: Theme.of(context).textTheme.labelSmall,
),
],
),
);
}
}