mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 03:27:39 +08:00
fix
This commit is contained in:
@@ -305,12 +305,13 @@ class _DetailCardState extends ConsumerState<DetailCard> {
|
|||||||
Widget downloadButton() {
|
Widget downloadButton() {
|
||||||
return LoadingIconButton(
|
return LoadingIconButton(
|
||||||
tooltip: widget.details.mediaType == "tv" ? "查找并下载所有监控剧集" : "查找并下载此电影",
|
tooltip: widget.details.mediaType == "tv" ? "查找并下载所有监控剧集" : "查找并下载此电影",
|
||||||
onPressed: () async{
|
onPressed: () async {
|
||||||
await ref
|
await ref
|
||||||
.read(mediaDetailsProvider(widget.details.id.toString()).notifier)
|
.read(mediaDetailsProvider(widget.details.id.toString()).notifier)
|
||||||
.downloadall().then((list) => {
|
.downloadall()
|
||||||
showSnakeBar("开始下载:$list")
|
.then((list) => {
|
||||||
});
|
if (list != null) {showSnakeBar("开始下载:$list")}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
icon: Icons.download_rounded);
|
icon: Icons.download_rounded);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user