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