mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-21 03:07:30 +08:00
ui: improve tv display
This commit is contained in:
@@ -38,18 +38,6 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
for (final ep in details.episodes!) {
|
||||
var row = DataRow(cells: [
|
||||
DataCell(Text("${ep.episodeNumber}")),
|
||||
DataCell(ep.monitored == true
|
||||
? const Tooltip(
|
||||
message: "监控中",
|
||||
child: Opacity(
|
||||
opacity: 0.7,
|
||||
child: Icon(Icons.alarm),
|
||||
),
|
||||
)
|
||||
: const Opacity(
|
||||
opacity: 0.5,
|
||||
child: Icon(Icons.alarm_off),
|
||||
)),
|
||||
DataCell(Text("${ep.title}")),
|
||||
DataCell(Opacity(
|
||||
opacity: 0.5,
|
||||
@@ -68,10 +56,18 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
message: "已下载",
|
||||
child: Icon(Icons.download_done),
|
||||
)
|
||||
: const Tooltip(
|
||||
message: "未下载",
|
||||
child: Icon(Icons.warning_amber_rounded),
|
||||
))),
|
||||
: (ep.monitored == true
|
||||
? const Tooltip(
|
||||
message: "监控中",
|
||||
child: Icon(Icons.alarm),
|
||||
)
|
||||
: const Opacity(
|
||||
opacity: 0.7,
|
||||
child: Tooltip(
|
||||
message: "未监控",
|
||||
child: Icon(Icons.alarm_off),
|
||||
),
|
||||
)))),
|
||||
),
|
||||
DataCell(Row(
|
||||
children: [
|
||||
@@ -116,7 +112,6 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
children: [
|
||||
DataTable(columns: [
|
||||
const DataColumn(label: Text("#")),
|
||||
const DataColumn(label: Text("监控")),
|
||||
const DataColumn(
|
||||
label: Text("标题"),
|
||||
),
|
||||
|
||||
@@ -74,12 +74,6 @@ class _DetailCardState extends ConsumerState<DetailCard> {
|
||||
const SizedBox(
|
||||
width: 30,
|
||||
),
|
||||
widget.details.mediaType == 'tv'
|
||||
? (widget.details.downloadHistoryEpisodes ==
|
||||
true
|
||||
? const Text("下载所有剧集")
|
||||
: const Text("只下载更新剧集"))
|
||||
: const Text("")
|
||||
],
|
||||
),
|
||||
const Divider(thickness: 1, height: 1),
|
||||
|
||||
Reference in New Issue
Block a user