mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 19:47:47 +08:00
fix
This commit is contained in:
@@ -308,8 +308,9 @@ class _DetailCardState extends ConsumerState<DetailCard> {
|
|||||||
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