Update comic details favorite page style

This commit is contained in:
角砂糖
2025-08-31 03:56:24 +08:00
parent e549a18dbf
commit 6ce6066de2
8 changed files with 626 additions and 339 deletions

View File

@@ -56,8 +56,12 @@ abstract mixin class _ComicPageActions {
type: comic.comicType,
isFavorite: isFavorite,
onFavorite: (local, network) {
isFavorite = network ?? isFavorite;
isAddToLocalFav = local ?? isAddToLocalFav;
if (network != null) {
isFavorite = network;
}
if (local != null) {
isAddToLocalFav = local;
}
update();
},
favoriteItem: _toFavoriteItem(),