Run dart fix

This commit is contained in:
2024-12-18 20:07:35 +08:00
parent 0b8ae2d377
commit a70b690d3c
2 changed files with 3 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ class _ComicPageState extends LoadingState<ComicPage, ComicDetails>
isLiked = comic.isLiked ?? false; isLiked = comic.isLiked ?? false;
isFavorite = comic.isFavorite ?? false; isFavorite = comic.isFavorite ?? false;
if (comic.chapters == null) { if (comic.chapters == null) {
isDownloaded = await LocalManager().isDownloaded( isDownloaded = LocalManager().isDownloaded(
comic.id, comic.id,
comic.comicType, comic.comicType,
0, 0,
@@ -679,7 +679,7 @@ abstract mixin class _ComicPageActions {
return; return;
} }
if (comic.chapters == null && if (comic.chapters == null &&
await LocalManager().isDownloaded(comic.id, comic.comicType, 0)) { LocalManager().isDownloaded(comic.id, comic.comicType, 0)) {
App.rootContext.showMessage(message: "The comic is downloaded".tl); App.rootContext.showMessage(message: "The comic is downloaded".tl);
return; return;
} }

View File

@@ -25,7 +25,7 @@ class _ReaderImagesState extends State<_ReaderImages> {
if (inProgress) return; if (inProgress) return;
inProgress = true; inProgress = true;
if (reader.type == ComicType.local || if (reader.type == ComicType.local ||
(await LocalManager() (LocalManager()
.isDownloaded(reader.cid, reader.type, reader.chapter))) { .isDownloaded(reader.cid, reader.type, reader.chapter))) {
try { try {
var images = await LocalManager() var images = await LocalManager()