fix image grid

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-15 16:40:44 +08:00
parent bdc524e486
commit 90349189ee
5 changed files with 11 additions and 15 deletions

View File

@@ -2,14 +2,14 @@ class BaseEmote {
late String url;
late String emoticonUnique;
late double width;
double? height;
late double height;
late final isUpower = emoticonUnique.startsWith('upower_');
BaseEmote.fromJson(Map<String, dynamic> json) {
url = json['url'];
emoticonUnique = json['emoticon_unique'];
width = (json['width'] as num).toDouble();
height = (json['height'] as num?)?.toDouble();
height = (json['height'] as num?)?.toDouble() ?? width;
}
Map<String, dynamic> toJson() => <String, dynamic>{