show img size

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-16 17:23:09 +08:00
parent 0c60800b36
commit 88b7f82406
22 changed files with 122 additions and 38 deletions

View File

@@ -44,7 +44,9 @@ class Pic {
url = json['url'];
width = (json['width'] as num?)?.toDouble();
height = (json['height'] as num?)?.toDouble();
size = json['size'];
if (json['size'] case num size) {
this.size = size * 1024;
}
pics = (json['pics'] as List?)?.map((item) => Pic.fromJson(item)).toList();
style = json['style'];
liveUrl = json['live_url'];