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