mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-26 12:38:41 +08:00
fix layout
This commit is contained in:
@@ -55,11 +55,15 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
|||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
child: Text("${ep.airDate}"),
|
child: Text("${ep.airDate}"),
|
||||||
)),
|
)),
|
||||||
DataCell(ep.status == "dwnloading"
|
DataCell(
|
||||||
? const Icon(Icons.cloud_download)
|
Opacity(
|
||||||
: (ep.status == "dwnloaded"
|
opacity: 0.7,
|
||||||
? const Icon(Icons.cloud_done)
|
child: ep.status == "downloading"
|
||||||
: const Icon(Icons.cloud_off))),
|
? const Icon(Icons.cloud_download)
|
||||||
|
: (ep.status == "downloaded"
|
||||||
|
? const Icon(Icons.cloud_done)
|
||||||
|
: const Icon(Icons.cloud_off))),
|
||||||
|
),
|
||||||
DataCell(IconButton(
|
DataCell(IconButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
var f = ref
|
var f = ref
|
||||||
@@ -94,10 +98,8 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
|||||||
DataTable(columns: const [
|
DataTable(columns: const [
|
||||||
DataColumn(label: Text("#")),
|
DataColumn(label: Text("#")),
|
||||||
DataColumn(
|
DataColumn(
|
||||||
label: SizedBox(
|
label: Text("标题"),
|
||||||
width: 500,
|
),
|
||||||
child: Text("标题"),
|
|
||||||
)),
|
|
||||||
DataColumn(label: Text("播出时间")),
|
DataColumn(label: Text("播出时间")),
|
||||||
DataColumn(label: Text("状态")),
|
DataColumn(label: Text("状态")),
|
||||||
DataColumn(label: Text("操作"))
|
DataColumn(label: Text("操作"))
|
||||||
@@ -108,21 +110,17 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
|||||||
}
|
}
|
||||||
return ListView(
|
return ListView(
|
||||||
children: [
|
children: [
|
||||||
|
|
||||||
Card(
|
Card(
|
||||||
margin: const EdgeInsets.all(4),
|
margin: const EdgeInsets.all(4),
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Flexible(
|
Flexible(
|
||||||
child: SizedBox(
|
flex: 1,
|
||||||
width: 150,
|
child: Image.network(
|
||||||
height: 200,
|
"${APIs.imagesUrl}/${details.id}/poster.jpg",
|
||||||
child: Image.network(
|
fit: BoxFit.contain,
|
||||||
"${APIs.imagesUrl}/${details.id}/poster.jpg",
|
headers: APIs.authHeaders,
|
||||||
fit: BoxFit.contain,
|
|
||||||
headers: APIs.authHeaders,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|||||||
Reference in New Issue
Block a user