support animation illust

This commit is contained in:
wgh19
2024-05-16 13:54:39 +08:00
parent efd5683529
commit 2f72437fc1
6 changed files with 343 additions and 38 deletions

View File

@@ -181,6 +181,7 @@ class Illust {
final int totalBookmarks;
bool isBookmarked;
final bool isAi;
final bool isUgoira;
bool get isR18 => tags.contains(const Tag("R-18", null));
@@ -226,7 +227,8 @@ class Illust {
totalView = json['total_view'],
totalBookmarks = json['total_bookmarks'],
isBookmarked = json['is_bookmarked'],
isAi = json['illust_ai_type'] == 2;
isAi = json['illust_ai_type'] == 2,
isUgoira = json['type'] == "ugoira";
}
class TrendingTag {