feat: show snakebar

This commit is contained in:
Simon Ding
2024-08-12 10:23:28 +08:00
parent 09ff67fef7
commit da863588e4
2 changed files with 5 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ class SeriesDetailData
ref.invalidateSelf();
}
Future<void> downloadall() async {
Future<dynamic> downloadall() async {
final dio = APIs.getDio();
var resp = await dio.get(APIs.downloadAllUrl + id!);
var sp = ServerResponse.fromJson(resp.data);
@@ -90,6 +90,7 @@ class SeriesDetailData
throw sp.message;
}
ref.invalidateSelf();
return sp.data;
}
}